Re: [SMARTY] Including modules

From: Date: Fri, 15 Apr 2005 18:30:12 +0000
Subject: Re: [SMARTY] Including modules
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12512@lists.php.net to get a copy of this message
> 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.

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