Re: [PHP Template] Another batch of ideas
[email protected] (Andrei Zmievski) Fri, 18 Feb 2000 15:26:40 -0600
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 18 Feb 2000, Dan Libby wrote: > > - Assigning values to vars inside a specific section. I'm not sure if > > this would be useful or not. > > couldn't hurt. shouldn't be hard to do. I don't see how this can be useful in our case. In HTML::Template the variables mentioned inside the section are local to that section, so it makes sense for them to assign to a specific section. We sort of have global variables. Another point this brings up. What if a variable that has multiple values is printed outside the section? I think it should just print the first value. > Yeah, I think it should default to doc_root unless ini setting is in effect. In the just updated spec I said we'd have tmpl.search_path setting which lists the possible directories for templates and defaults to . if not specified. > This should definitely be optional. You might have a piece of code sitting around, > and some of it becomes obsolete, so the designer just removes the references to the > unneeded variables. If the warnings were on, the code would also have to be > changed. Already mentioned in the spec and has .ini setting. > I prefer a global setting. I suppose there could be a cacheable="no" parameter for > the include tag, but what's the point? I suppose there could be some memory > savings... Nope. Should be global setting. I suppose we'll need a way to modify these .ini settings. You can do it using ini_alter(), but should we have tmpl_set_ini() or something? -Andrei * It said 'Winmodem' on the box, but I still feel like I lost. *