Re: Changed it all... modules!

From: Date: Mon, 17 Dec 2001 20:43:44 +0000
Subject: Re: Changed it all... modules!
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2324@lists.php.net to get a copy of this message
Hi Monte! Yes, you've got a point there... luckily I have adopted your ideas and made it all over again... so now it's just to drop the custom functions and modifier files in the plugin directory and start using them. The modifier function files must have the name: mod_????.php and the custom function files must be named: func_????.php where ???? is the name of the modifier/custom function. /Andreas PS. If anyone wants it, I can send you the modified Smarty_Compiler.class.php file, just to replace it with the one from Smarty 1.5.1 -----Ursprungligt meddelande----- Från: mohrt@ns3.ispi.net [mailto:mohrt@ns3.ispi.net] För Monte Ohrt Skickat: den 17 december 2001 15:20 Till: Andreas Heintze Kopia: smarty mailing list Ämne: Re: Changed it all... modules! I still think this can be made automatic, just load the plugins/modifiers as they are mentioned in the template, thus skipping the need for a {plugin ...} function called in the template files. > Andreas Heintze wrote: > > OK, I have now modified Smarty_Compiler.class.php so you can put this > kind of tags in your templates: > > {plugin load="mod_alt,func_myfunc"} > > > > Please take a look and see what you thinks about it. > > /Andreas > > > > PS. I have also included my language module in this zip-file. > > Name: Smarty1.5.1x.zip > Smarty1.5.1x.zip Type: Zip Compressed Data > (application/x-zip-compressed) > Encoding: base64 -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.smarty.general (#2324) next »