n3p3 Posted December 29, 2007 Share Posted December 29, 2007 Hey everybody, I'm working on a CMS script. What I want to do is, to design it as a modul. So that, I can easily integrate it to my future web projects. and I have some specific questions.. 1) which design procedure you recommend? I think I need a coding guideline for modular programming.. I'll be glad if you can give me any examples.. 2) which one is better? to create and parse xml files for content list, event list from database? or to get it as normal text? Quote Link to comment https://forums.phpfreaks.com/topic/83624-solved-modular-programming/ Share on other sites More sharing options...
Liquid Fire Posted December 29, 2007 Share Posted December 29, 2007 1. I would recommend the MVC pattern, pretty much the standard in web programming frameworks. 2. depends. I would not recommend normal text file in any way. If the content list need to be internal(as in only your application needs access to it) I would recommend database. IF there is a good chance you want other people to access that data(who would not have access to the database) then the XML file is a good choice. Quote Link to comment https://forums.phpfreaks.com/topic/83624-solved-modular-programming/#findComment-425416 Share on other sites More sharing options...
n3p3 Posted December 29, 2007 Author Share Posted December 29, 2007 Could you please give more but simple information about the MVC..Cause I looked at some articles in resource section, but they are too theoretic for a newbie. And can you give me some examples about the design of my CMS script..Then how can I integrate it to a website using these design patterns? Thank you Quote Link to comment https://forums.phpfreaks.com/topic/83624-solved-modular-programming/#findComment-425439 Share on other sites More sharing options...
redbullmarky Posted December 29, 2007 Share Posted December 29, 2007 n3p3, with all due respect - if you're a newbie, then MVC/design patterns/modules, etc are all terms to steer clear of for a while. You'd be better Googling for a PHP CMS that's already established (of which there are many) or just getting to grips with the PHP basics Quote Link to comment https://forums.phpfreaks.com/topic/83624-solved-modular-programming/#findComment-425458 Share on other sites More sharing options...
n3p3 Posted December 29, 2007 Author Share Posted December 29, 2007 redbullmarky, I have enough experience with PHP but I don't know much about OOP and Design Patterns. I developed many projects and I've seen the improvement in my coding style. Now I'm thinking a little big.. So I started with OOP. But I really don't have any idea about these design patterns.. If you can help me to start with the main idea behind MVC, I'll be glad. I'm just looking for the way to integrate modular scripts to complicated web projects. Thanks, Quote Link to comment https://forums.phpfreaks.com/topic/83624-solved-modular-programming/#findComment-425464 Share on other sites More sharing options...
redbullmarky Posted December 30, 2007 Share Posted December 30, 2007 in which case, the best way (IMO) would be to play around with several CMS' that are already on the market and decide which fits the bill the most in terms of what it does, and the way it works and is structured. Some to consider might be Wordpress, Joomla, Mambo, Drupal and even forum software like phpBB and SMF. All of them, to various extent, adopt the MVC pattern (or at least just template seperation) and all allow for extensive plugins/modifications/theming, etc. Once you've found one you're happy and comfortable working with, you can either change it to suit your needs or use it as a guideline to roll your own. You'll learn a tonne about patterns (even if you don't put names to them yet) as you go along. For MVC itself though, try a framework like CakePHP/CodeIgniter and read their manuals. Both offer a decent insight into what MVC is about and what it can do for you. Quote Link to comment https://forums.phpfreaks.com/topic/83624-solved-modular-programming/#findComment-425849 Share on other sites More sharing options...
448191 Posted December 30, 2007 Share Posted December 30, 2007 Unless you're in a hurry to get some quick and dirty solution, I wouldn't recommend any of those apps. They aren't exactly prime examples of good design. Instead I would look for something ready build on one of the better frameworks, like Zend Framework or Symfony. Symfony has a learning curve, but there's a ready to use CMS plugin for you explore: http://www.symfony-project.org/blog//2007/07/17/a-simple-cms-for-symfony Quote Link to comment https://forums.phpfreaks.com/topic/83624-solved-modular-programming/#findComment-425861 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.