prefilter?
| From: | Mark Leavy | Date: | Fri, 15 Mar 2002 16:55:16 +0000 |
| Subject: | prefilter? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3084@lists.php.net to get a copy of this message | ||
Hi,
Is it possible to extract the smarty template vars from a template, then
assign values (rather than assign before hand)? E.g. in a template i have
{$module_userlogin} , i would like to be able to parse this template, see
$module_userlogin, load the file module_userlogin.php and assign the return
of new userlogin; (where userlogin is a class defined in
module_userlogin.php). Basically so i can have some sort of dynamic class
loader.
I'm sure this can be done (isn't this sort of how the plugins work? sees a
function and loads the plugin file with that function in it?), but i'm having
Friday afternoon brain melt down.
Thanks
MarkL
mark@linux2002.org