I’m, trying to create a simple cms as I learn php and I was wondering what the best way to have different pages would be? So that from the backend the use can add a page which would be separate from the homepage and would get its text from I presume a database.
I’m open to all ways of doing this as i haven’t got a clue. If you need more info please comment.
Denver
Why not look at how one of the best-in-class systems do it? The basic principles of databased content and templates tend to work the same way across various CMSs and this would give you a great head-start.
For my money, a good example would be Silverstripe at this point in time – they have a good clean underlying code structure and some easy-to-follow tutorials that get the basics across very quickly.