php-general | 2003022
Date: 02/27/03
- Next message: Karl James: "[PHP] Read"
- Previous message: Jim Long: "[PHP] separating value="n/a" from array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ok I created an engine, an extremely simple engine that parses a template
file and then according to whatever page and language it is on it calls that
template.
Now the problem is that, well let me give you an example:
I have a page called index.php which only has an include_once function in
it, which includes the engine. This engine checks the name of the file,
then checks a cookie and/or the browser prefs for the language then parses
the template with the main table cell of the template as the included file
/en/index.inc. So if you went to products.php it would parse it and grab
/en/products.inc.. the way I see it is that I really do not need those .php
files and could let my 404 page parse the files as needed, but there should
be a better way of doing this... Each one of my .php files are the exact
same thing...
Cheers!
Rick
"Only a life lived for others is worth living." - Albert Einstein
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Karl James: "[PHP] Read"
- Previous message: Jim Long: "[PHP] separating value="n/a" from array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

