Code Comments
Programming Forum and web based access to our favorite programming groups.The smarty object should be available in the function, just
$smarty_obj->assign('foo',$bar);
Jan H. Andersen wrote:
>Hello,
>
>I've made a resource plugin that will allow me to read templates from a
>table in a database - nothing special in that. Along with the
>template-record I have som other data that I make available to the template
>with the assign-method. But when I use the include-function inside my
>templates (like {include file="db:/mytpl"} ) I want to be able to assign
>variables from the database record of "mytpl", so they are available when
>parsing mytpl. So, is it possible, and how, to assign variables to template
s
>loaded by a smarty_resource_db_source function in a resource plugin ?.
>
>
>Best regards,
>
>Jan H. Andersen
>
>
>
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.