On Wed, 2007-08-29 at 16:05 +0200, 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?I suppose this won't be extended that often, so it is at least solveable by good documentation. I still like the more explicit variants (passing one or mor structs / objects; custom template functions) more. -- Mit freundlichen Grüßen / Med vennlig hilsen Kore Nordmann (GPG: 0xDDC70BBB) eZ Components Developer eZ systems Headquaters tel +49 (0) 231-9742-7750 | fax +49 (0) 231-9742-7751 [EMAIL PROTECTED] | eZ systems | ez.no
signature.asc
Description: This is a digitally signed message part
-- Components mailing list [email protected] http://lists.ez.no/mailman/listinfo/components
