Afficher un message
Vieux 16/03/2005, 16h01   #2
Tim
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Locate all files of certain filetype to a specific folder?

Aapo V <aapo@roc.fi> posted:

> Is it possible to make so that every time a script or user calls a
> script ending with ".tpl", the server would automatically search the
> file from a specific folder?
>
> eg if on /public_html/index.php I call "news.tpl" it would get the
> news.tpl file from the /public_html/php/tpl/ -folder.
>
> And the same if the news.tpl is called from
> public_html/something/nothing/index.php.
>
> I could just always use the absolute paths to the .tpl-files but I would
> prefer more to skip writing the abs path every time...


It'd be less work for the server if it didn't have to rewrite URIs, or
redirect the browser, on every request. You could use an alias, if you'd
just like to shorten what you had to use as an absolute URI.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
  Réponse avec citation
 
Page generated in 0,06531 seconds with 9 queries