Re: [SMARTY] Re: [SMARTY-GENERAL] Plugindir
| From: | Andreas Kossmeier | Date: | Tue, 09 Apr 2002 21:16:16 +0000 |
| Subject: | Re: [SMARTY] Re: [SMARTY-GENERAL] Plugindir | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3597@lists.php.net to get a copy of this message | ||
Andrei Zmievski wrote:
At compilation time, the plugin may not yet be registered. If we don't check for plugins at all in _load_plugins() then you end up with messages like: "Undefined function () in ....".you *have* to check for plugins and their functions for existance, but you don't have to look for the location of a needed plugin _file_ at run-time. if someone registered a function at run-time, then the function has to exist, this doesn't affect the plugin scanning. # compile time 1 store data about location of used plugins # run time 2 load plugins (locations are in the compiled file) 3 check existance of functions -> no scanning at run-time is needed. right? -- andreas kossmeier bergfex.at - http://www.bergfex.at