Jump to content

Creating my own simple CMS with PHP and MySQL HELP!

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
13 replies to this topic

#1
Coldhearth

Coldhearth

    Learning Programmer

  • Members
  • PipPipPip
  • 88 posts
Hi there,

By now I have a bit of experience programming some simple stuff with PHP like a guestbook or a simple login form and stuff like that.
But what I realy would like to do is write my own CMS so I can use that to start with and later on add more advanced stuff into it.

This would realy help me when someone asks me again to create a site so that I don't have to write a whole system everytime I need to create a site for someone who wants to edit their own site after its finished.

The problem is; I realy don't know where to start with this...
Can someone here help me out and tell me what's the best way to start a small CMS and later on edit it with more advanced stuff (security, new modules and options for my clients and so on...)

Thank you :)

#2
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
I would start by developing a strong MVC framework. Once that is done, work on the template system. From there, if you made a good framework, your CMS wil be easily be pluggable so you can implement modules.

Posted via CodeCall Mobile

#3
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I agree with John. You'll need to develop your framework before you do anything more advanced. A central point of entry for a CMS is critical.

#4
Coldhearth

Coldhearth

    Learning Programmer

  • Members
  • PipPipPip
  • 88 posts
Okay so I need to create a strong Model View Control system but I must say I've never done something like that before... are there good tutorials for this or something? :)

#5
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
I can't say there is a single tutorial that explains the MVC well enough to fully grasp its capability and understand how to employ it to its fullest degree. I probably read well over 100 pages before I was satisfied with my framework.
Posted via CodeCall Mobile

#6
Coldhearth

Coldhearth

    Learning Programmer

  • Members
  • PipPipPip
  • 88 posts
Hmm it seems that I might be overdoing it a bit after reading this through and searching a bit on google...
In that case can you point me in a good direction on how I should study PHP to the fullest...? I'm now at a level where I'm creating simple guestbooks and login scripts with some MySQL added to it...

#7
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
I believe there aren't so many tutorials in such actually advanced programmings as an CMS.
I'm writing an simple one on my own now, but I think that it will not be as customizable as you are thinking of adding modules and stuff.

One thing that I believe in for doing such a system, is to make a frontend based on the database, each page to be viewed needs to be in the database, and just the very control code get into the real php.

I've made it easy for me, by using a "finished" template product, Smarty (Smarty : Template Engine) which is disliked by many people, but loved by others.
this makes it very easy to create different "skins" for example.

#8
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I suggest reading books to increase your PHP knowledge. Read the books and do the exercises. Start at your current level and advance through the Pro PHP books out there.

#9
Coldhearth

Coldhearth

    Learning Programmer

  • Members
  • PipPipPip
  • 88 posts
can you suggest me some books for my level to learn new stuff...? :)

#10
Guest_Jordan_*

Guest_Jordan_*
  • Guests
What level would you rate yourself? Newbie, Intermediate or Advanced?

#11
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
I would rate myself advanced to expert. :)

#12
Coldhearth

Coldhearth

    Learning Programmer

  • Members
  • PipPipPip
  • 88 posts
Well if you put it that way I don't really know ...
I'm able to create a guestbook and login script, a news script, etc... (not really secure ones) but the basics of form handling are going quite well for me... I've also worked with some session stuff. I also have some experience from school with Java.
Based on that how would you rate me? And what books would you recommend? :)