content management system - loading a template in php -
i'm building small cms in php have problem front end. have folder name template inside folder got different themes
-admin -template ---theme1 ---theme2 ---theme3 -index.php
when load index.php can load theme, in browser url localhost/cms/template/theme1/page.php
but have localhost/cms/page.php instead.
will please tell me when i'm doing wrong!
thanks.
i'm little confused...you front end issue, point url issue.
my guess this: need identify different themes using separate stylesheets in css. having different pages called page.php looks differently requires more work , complicates issue. css designed customize of different pages and/or templates. why not create 3 different stylesheets , create simple form allows administrator choose stylesheet use (by radio button, or else).
you can determine stylesheet "in use" in number of ways - either on end or front end. given cms, you'll want administrators choose stylesheet , allow selection update database entry or change file on back-end. no matter choose, you're url's should not affected.
finally, can rewrite urls .htaccess, can lead more issues develop site. speaking - htaccess overkill issues this.
Comments
Post a Comment