SV: Re: Modules ready
| From: | Andreas Heintze | Date: | Sat, 15 Dec 2001 13:03:11 +0000 |
| Subject: | SV: Re: Modules ready | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2313@lists.php.net to get a copy of this message | ||
Hi there!
Yes I know, Monte took a look at my first code and have given me some
good points, I'm soon ready with another solution, where the designers
simply can choose which modifiers and custom functions they want by
putting a tag like this in the template:
{plugin load="mod_alt,mod_ex2,func_myfunc"}
You put all your modifiers and functions in the modules directory:
smarty
modules
mod_alt.php
mod_ex2.php
func_myfunc.php
Also my language module for the programmer is almost ready... I will let
you know.
For these kind of modules I simply make another directory in
the modules dir and put my code there like this:
smarty
modules
mod_alt.php
mod_ex2.php
func_myfunc.php
language
language.php
By the way... what about my name choice 'plugin' ??
I was thinking of this name for the modifiers and custom functions and
for larger scripts like my language code I'll call them modules!?
Should I make two directories instead one called 'plugins' and the
other one 'modules'?
/Andreas