Re: [SMARTY-DEV] Question
| From: | Bertrand DUNOGIER | Date: | Thu, 01 Aug 2002 17:43:10 +0000 |
| Subject: | Re: [SMARTY-DEV] Question | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-229@lists.php.net to get a copy of this message | ||
First, Please, please, PLEASE, use a real subject in your emails. When
you browse through archives and see hundred of obfuscated subjects
like 'question', 'help', 'problem', 'not working', you
lose hours
guessing where is what you're looking for...
Gf> Is this for the general list or for this one?
General. It's not a question related to smarty developpement, it is
related to something you develop using smarty.
Gf> I want to create a block plugin for example
Gf> {foo}some data{/foo}
Gf> Can you please tell me the exact name name for the function and
Gf> the php file in the plugins directory? Is this the only setting
Gf> necesary in order to make smarty recognize the plugin?
You can find these informations at this address:
http://smarty.php.net/manual/en/plugins.block.functions.html
To summarize, the function prototype will be:
smarty_block_foo($params, $content, &$smarty)
and it will be placed in a file named block.foo.php
Gf> (sorry if something is cluttered, I can't see what I type in my
Gf> #@#@#@# outlook express)
Get another client.
Bertrand