Posted by Jonathan Villa on 09/29/12 11:14
> why not refactor these 3 as smarty plugins...
> then you can do stuff like:
>
> header.tpl
> -----------
> {top_nav}
> {left_nav}
> {right_nav}
>
>
> take a look at the files in the plugins dir of smarty for info
> on how to write a smarty function/plugin.
>
I did exactly that but I kept getting an error about $smarty-> not being
instantiated... you know the error "xxxon a non object"
I'm instantiating it in file called app-config.inc that get's prepended to all
application files... that setup has worked for months... just get an error when
trying to use it in a smarty plugin.
[Back to original message]
|