On Wed, 29 Aug 2007, Frederik Holljen wrote:
> On Wednesday 29 August 2007, Kore Nordmann wrote:
> > On Wed, 2007-08-29 at 13:50 +0200, Raymond Bosman wrote:
> > > > 1) Use Structs / Objects
> > > >
> > > > You may combine lots of information in some structs or objects
> > > > representing logical objects in your application, and pass nothing more
> > > > but them, like a $request-Struct containing all request information.
> > > >
> > > > You are probably already dooing this, but the logical seperations still
> > > > result in too many variables?
> > >
> > > Something like?:
> > >
> > > {use $send}
> > > {$send->a}
> > > {$send->b}
> > >
> > > And $send is a default object send to each Template?
> >
> > Hmm, nice idea. :)
>
> It's basically a global variable... but how do you know which global
> variables are available in a template?
Right.., instead of this, it would be more practical to *indicate* it is
a global (as in option 4).
Derick
--
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components