Re: [PHP Template] Revised proposal

From: Date: Fri, 18 Feb 2000 23:08:34 +0000
Subject: Re: [PHP Template] Revised proposal
References: 1 2 3 4 5 6 7 8  Groups: php.template 
Request: Send a blank email to php-template+get-183@lists.php.net to get a copy of this message
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.

« previous php.template (#183) next »