Re: [PHP Template] Revised proposal
[email protected] (Andrei Zmievski) Fri, 18 Feb 2000 17:08:34 -0600
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 18 Feb 2000, Dan Libby wrote:
> Right. I imagined something similar. However, to me this implies that it will be
> the template itself that is specified in the URL, not the PHP file. This means that
> the template processor must register another mime type with the webserver to handle
> template files. It really changes the paradigm, and I didn't go forward with it.
> What does everyone think? What do other templating systems do about this, if
> anything?
>
> I suppose an alternative is that your top level PHP code will have a specific
> template associated with it. It will do the first tpl_load(), and after that the
> templates may choose their own PHP files. This means you would need to have at
> least one .php for each top level template. I find that pretty gross.
That's true, but I don't think polluting MIME type namespace is a good
idea. I'm not sure what to do about this, so I just put it out of my
mind for now.
-Andrei
Hacker: Any person who derives joy from
discovering ways to circumvent limitations.