Re: [PHP Template] Revised proposal

[email protected] (Andrei Zmievski)
Newsgroups php.template
Message-ID <[email protected]>
On Thu, 17 Feb 2000, Travis E. Sitzlar wrote:
> This might be a dumb idea, but why not have an option to do an implicit
> tpl_assign on unknowns?  I.e., if a block of code such as
> 
> 	{if: $title != "foo"}
> 		<b>$title</b>
> 	{else:}
> 		<b>none</b>
> 	{/if:}
> 
> is encountered but there is no $title assigned, why not have a way of
> auto-assigning $GLOBAL['title']?

I don't think it's a good idea to automatically assign anything. Who
knows what your $GLOBALS may contain and the designer will be bitten by
it.

-Andrei
* Ethernet n.: something used to catch the etherbunny. *
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.