Re: Variables.class

Joe Stewart <[email protected]> Tue, 29 Jul 2003 10:57:00 +0200
Newsgroups gmane.comp.cms.phpslash.devel
Message-ID <[email protected]>
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
> 
> 


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01