Re: [Phpslash-devel] Variables.class
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2003-07-29 15:57:54
|
On Tue, Jul 29, 2003 at 10:19:24AM -0400, Mike Gifford wrote: > In config.php in the CVS I think that you should be linking to > Variable.class & not variable.class > > AddClassRequirement("variable",$_PSL['classdir'] . "/Variable.class"); > thanks, will correct. > How much is this class being used? Just got a question about trying to > extend this class to allow folks to add global template variables. > That's beyond what this class does now from what I understand, but it's > an interesting concept. > The Variable class is not used at all currently. 0.5.3 had many variables in the db and had many queries to get them each page view. We worked hard to move to html templates and defining what's needed in the config text file. We discussed possibly using it again by loading variables from the db into the session to reduce repeated access issues. I think providing some of the basic common placeholder values to the template object when initiating it is a natural next step. We couldn't do this till we had a slashTemplate class. Now, we should be able to set things like rooturl, imageurl, etc. to be provided to all templates. thanks, Joe > Mike > -- > Mike Gifford, OpenConcept Consulting > Free Software for Social Change -> http://www.openconcept.ca > Site Launch - Make Every Vote Count - http://www.fairvotecanada.org > The cruelest lies are often told in silence. -- Robert L Stevenson > > |