404 and parsing templates

From: Date: Fri, 28 Feb 2003 04:05:48 +0000
Subject: 404 and parsing templates
Groups: php.general 
Request: Send a blank email to php-general+get-137507@lists.php.net to get a copy of this message
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

« previous php.general (#137507) next »