Re: [SMARTY] RE:was : Intergrating HTML_treeXL with Smarty now: DHTML with java script

From: Date: Mon, 12 May 2003 23:08:23 +0000
Subject: Re: [SMARTY] RE:was : Intergrating HTML_treeXL with Smarty now: DHTML with java script
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9538@lists.php.net to get a copy of this message
try this, wherever you have the <?php and ?> tags, replace them with {php} and {/php} for the .tpl file this is a solution, but not recommended, since you are technically breaking the purposes of the templates being HTML only and the php/smarty being the code. the proper way was as early suggested with {include_php ...} that way the code can be called from any template and still leaves the only HTML within the .tpl files. you can access the php var's as if the included .php was written in the .tpl by using {$php_var_name} where you need to. Best regards,
 Kit DeKat                         mailto:kitdekat@earthlink.net
Systems Programmer -----BEGIN PERL GEEK CODE BLOCK----- Version: 0.01 P++>+++@$c---P6-R >++M+$O+>+++(++)$MA >+E+PU >+BD >++C >*$ D++S++>+++@X>++WP?MO?PP!n?CO?PO--o?G A--Ee+++Ev w+m! ------END PERL GEEK CODE BLOCK------

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