Re: Package Proposal: HTML_Template_Dummy

From: Date: Sat, 19 Jul 2003 00:05:59 +0000
Subject: Re: Package Proposal: HTML_Template_Dummy
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18408@lists.php.net to get a copy of this message
functions like: options() checkbox() radio() cycle() date() javascript() stylesheet() should be as plugins - smth like in Smarty cause its a waste to load all this code when we dont use it i see 2 ways of doing this: 1. create function for example "exec" to execute plugins $this->exec('htmlOptions', $data, $selected) 2. or create seperate Plugin object and use object overloading (requires PHP 4.3) $Plugin->htmlOptions($data, $selected); -- -- -- -- in mgcLib :: Template plugins are done like this code of the main template file: http://scg.milc.pl/cagret/mgcLib/Template/Template.php all can be downloaded here: http://prdownloads.sourceforge.net/mygosuclan/mgcLib_v1.12.zip?download -- cagrET

« previous php.pear.dev (#18408) next »