Designing my own CMS
Posted: Sun Apr 19, 2009 11:20 am
Hey everyone, before I start, I will say that I rate my skills in php at about "Average"
So, I want to create my CMS with theme support similar to that of wordpress, drupal, etc... So all you have to do is create a basic style put some <?php ... ?> tags at convenient places such as title, header, footer and content. I am trying to create a class to load the theme, however I can not think of a way to do this.
How can I load the content into the right places, before I made a simple system which wasn't OOP.
my current goal is to have something like:
And load all the content of that page into the right places in the theme. Obviously this is very simple, but I just want some idea of how to handle the theme and the data of the page. Thanks. (Also if this is the wrong place, sorry).
Remember, I am not looking for actual code solution but more of an idea/way to complete my goal.
Just realised I put it in security, can someone move this or can I delete it?
So, I want to create my CMS with theme support similar to that of wordpress, drupal, etc... So all you have to do is create a basic style put some <?php ... ?> tags at convenient places such as title, header, footer and content. I am trying to create a class to load the theme, however I can not think of a way to do this.
How can I load the content into the right places, before I made a simple system which wasn't OOP.
Code: Select all
include 'themeheader.php';
echo $content;
include 'themefooter.php';Code: Select all
new theme($themename);
new content($pageid); Remember, I am not looking for actual code solution but more of an idea/way to complete my goal.
Just realised I put it in security, can someone move this or can I delete it?