The Utils file is an old-fashioned collection of small functions that we have left out out the OOP. Nothing wrong with that!
The Utils file is an old-fashioned collection of small functions that we have left out out the OOP. Nothing wrong with that!
The template handling class is a simplistic derivation from the Smarty class.
As you can see most of what it does is use the Registry settings to set up the main instance of Smarty. We have, however, added some exception handling. What the exception handling does is make old-fashioned errors throwable so you can use try..catch structure in cases that do not inherently support catching errors. Go have a look at the Smarty plugin to see how the functionality is used in an include_once error handling. Please save this in the lib directory.
If you want to add exception handling as a separate class here it is:
Good Lord, we have forgotten the two small html files that we need to test whether our system really works. The html/menus.html is something like this
Please note: these files do not exist yet so the 'plus' will show an error message and the [code] will show a blank popup.
and the html/test.html can be anything. Lets be simplistic