Noob PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pandemic
Forum Newbie
Posts: 1
Joined: Mon Aug 31, 2009 8:18 pm

Noob PHP

Post by pandemic »

Hey guys, I am working on a simple CMS.

Currently, I have my pages in my SQL database in BBCode format. I am able to pull the code out of the database, parse it, and display it just fine.

I also have a simple news system that works the same as the pages.

Where I am running in to problems is making the backend.

Right now I just have a bunch of case statements which I plan on optimizing to be objects/functions like everything else.

But this is my first CMS from scratch and I was wondering if you could please point me in the correct direction as to where I could find some helpful advice on the structure that I should code this backend.

Right now the case statements call a function which renders a text area (for editing a page) and I pass in to it the page ID, current contents.

My main issue comes when I need to have multiple text inputs and making the query string to submit them dynamic so I can say... for the news ... have a title, news body, and news footer.

I would like to make this as dynamic as possible for future adding of thing like shopping cart items that need multiple fields, more fields for page contents, etc....
ocpaul20
Forum Newbie
Posts: 12
Joined: Thu Jul 05, 2007 3:53 am

Re: Noob PHP

Post by ocpaul20 »

I think this is a huge topic and maybe you would need to be more specific in the questions that you ask. Perhaps I am wrong, you may find help here with this broad subject.
please point me in the correct direction as to where I could find some helpful advice on the structure that I should code this backend.
This is a design issue, and there are probably as many different designs of CMS as there are CMS programs. Perhaps it is like saying "I want to build a car, can you point me to a website that will help me to design and build one". You may think I am being negative and unhelpful, but I honestly think you would get more helpful advice if you narrowed your question slightly.
Post Reply