Re: [PHP Template] Revised proposal
| From: | Andrei Zmievski | Date: | Thu, 17 Feb 2000 22:01:29 +0000 |
| Subject: | Re: [PHP Template] Revised proposal | ||
| References: | 1 2 3 4 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-116@lists.php.net to get a copy of this message | ||
On Wed, 16 Feb 2000, Dan Libby wrote:
> Right. I guess the problem I see is that when people do an include they expect
> it to be self-contained. So in the above example, template b may have been
> written by someone else 3 months before, and the designer suddenly says, aha --
> I could use that here. So there has to be understanding by everone involved
> that include has a different meaning here than in other systems and that such a
> template would have to be thoroughly checked to make sure it doesn't use any
> unknown variables.
Yes, since templates are not standalone and have to be processed by PHP
scripts, you can't simply separate a piece of template and reuse it
later without reusing some PHP code as well.
Handling unnknowns is planned via .ini or some other setting. It will
either silently remove unknowns, loudly complain about them, or turn
them into HTML comments.
> This may just be a process issue, or maybe it won't come up as often as I fear.
I don't think it's a big problem.
> I'd prefer defaulting to doc_root. Then we could have tpl_set_root allow an
> override for someone
> that really wants to use something elsewhere in the filesystem (depending on php
> settings).
That's fine. Stuff like this can be tuned up later.
-Andrei
* Software never has bugs. It just develops random features. *