extensions/ /include/smarty_plugins – Any plugins you made and want to use.The following list specifies which files can be specified in an extension, in the order that init.php checks for them: It also loads the list of enabled extensions and any initialization files specified in those extensions. Basically all the stuff necessary for your request to be processed. This initialization file sets up the database accessors, sets library paths, verifies the user session, sets the path to the si_log and error_log files, loads the file, etc. In each case, the extensions directory is searched first to see if a user defined file is to be executed in place of or sometimes along with the default file.įirst, the include/init.php file is loaded. There are a number of default files accessed before the default files (or their extension replacement). However, it is a bit more complex than just this. Notice the pattern here, the path for the file is the extensions directory, the directory for the extension name. If an extension has this file, it is executed instead of the default file. The path used is extensions/ /templates/default/invoices/manage.tpl. Similarly, before accessing the manage.tpl file, a check is made of all enabled extensions to see if they have this file. The path used is extensions/ /modules/invoices/manage.php. However, before accessing the manage.php file, a check is made of all enabled extensions to see if they have this file. If no extensions are enabled, index.php will execute the code in the modules/invoices/manage.php file and display the data it collects in the templates/default/invoices/manage.tpl file. This tells Simple Invoices to execute the index.php file passing it the parameters of module set to invoices, and view set to manage. Localhost/ /index.php?module=invoices&view=manage For instance, the initial screen displayed by Simple Invoices, once you are logged in, has the following URL: Each user request includes at least two parameters in the URL. When a user request is made, it is processed by the index.php file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |