TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-26-2008, 11:10 PM   #1 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Bricks Project suReality - ReSpawN

Hey guys,

I've taken some time off from making my own CMS but now I want to get back in the ring, so to speak.

Now, the thing that bothers me, is where to start. I've got my MySQL class set up but where do I go from here? How do I make the structure for the template, modules, blocks and so on. What's the best approach on this particular subject.

I hope you guys can fill me in a bit.

Mark
__________________
"Life is a bitch, take that bitch on a ride"

Last edited by ReSpawN : 01-28-2008 at 04:52 PM. Reason: Title change to a wider variety of subjects.
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 01-26-2008, 11:30 PM   #2 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Make the Template class first, that will be very important, Modules and Blocks and certain Addons can come later, but your best bet is to make a Template class first, then possibly make an SMTP class for handling the emails, and whats going in and out. Just by making these classes, and then starting on the main work is good, considering then you got everything you need right there, and it should help you a bit. :]
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 01-27-2008, 01:37 AM   #3 (permalink)
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

I would suggest going for the database module first, then the template system, and after that, make some global input filtering. But before you start these out, I suggest you go and create a list of requirements and basic functionality for what you want to do (using a pencil and a piece of paper, that is). Makes stuff easier later.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
Old 01-27-2008, 09:45 PM   #4 (permalink)
The Addict
 
Join Date: Nov 2007
Posts: 264
Thanks: 2
TlcAndres is on a distinguished road
Default

I'd go with the pencil (PENCIL, no pen, you'll do lots of erasing) and paper, from experience..

1. templating class
2. cache class (if you'll have it)
3. input filtering system
4. mailing system.
5. module system
6. member system
7. all your modules and addons

(thats atleast my personal preference as far as things go)
TlcAndres is offline  
Reply With Quote
Old 01-27-2008, 11:53 PM   #5 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by xenon View Post
I would suggest going for the database module first, then the template system, and after that, make some global input filtering. But before you start these out, I suggest you go and create a list of requirements and basic functionality for what you want to do (using a pencil and a piece of paper, that is). Makes stuff easier later.
He already made a SQL class. :/
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 01-28-2008, 12:44 PM   #6 (permalink)
The Wanderer
 
vujsa's Avatar
 
Join Date: Dec 2007
Location: Indianapolis, Indiana, USA
Posts: 16
Thanks: 0
vujsa is on a distinguished road
Default

Well, I think after you finish your MySQL Class you can start on your session/authorization classes. Since most developers primary mission in creating a CMS is to manage their users, I find that the user related scripts need to follow the database scripts.

After the session/authorization classes, are written, you can start on the index.php which should act as the traffic control agent for your system. index.php should direct the script to the classes and functions that will be used for the user's request.

Once you have the index started, you can work on the template class. Since the template is very much dependent upon the action you are performing, it will be a continuous project.

Maybe I do things differently than everyone else but I like to work on a section of code and get it to work then build on that for the next section. For example, I usually hard code some sample output for whatever action I am coding then if it works, I modify the code to use the template and of course, I add the proper code to the template class to make it work.

Another thing, go ahead and manually add content items to you database and when the frontend system works correctly, then design the backend system for the administration of the CMS.

vujsa
__________________
Need PHP Help? - Handy PHP
vujsa is offline  
Reply With Quote
Old 01-28-2008, 04:41 PM   #7 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

Thank you all for replying on such a short notice. I'm eager to start off as soon as possible.

I noticed that some of you have a different way of approaching basic elements like the MySQL class and so on. Not that it matters much, though. I like each and every one of you guys perspective and I will make sure to take bits of each suggestion/advice.

Surely I will ask a lot of more questions here, but for now I am going to start off finishing up some old work.

Once again, thanks you all!

Viva la TalkPHP.
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:11 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design