Posted by Sharon O. on 01/12/07 00:07
I'm currently using my own method to make a CMS work as follows:
User wants to open /pages/foo.php.
Content of foo.php:
<? include (".../includes/cms.php"); ?>
Content of cms.php::
<title>...<body>...pretty pictures...
<? if ($url = /pages/foo.php) { include (".../pages/foo.inc.php"); ?>
</body>
foo.inc.php then contains the actual content:
<h2>About us</h2><p>We are...
As you can see foo.php simply opens the CMS script. The CMS script then
handles giving the website design to the browser, then it works out where
the needed page containing the content is from the URL.
This works fine but is this a better way anyone could suggest I use?
Navigation:
[Reply to this message]
|