LemonInflux Posted April 15, 2009 Share Posted April 15, 2009 Hey guys, this is a bit vague so sorry, but I'm trying to do this project with as little help as possible. I have a plan to make a CMS software core that can be extended via modules using a core API to access internal functions (database, sessions etc) and am having quite a large problem... I don't know where to start! Do I start with the framework? Code the core module and then design the framework around it? I have a fairly clear idea of how things will work; my problem is getting them down in PHP! I've been trying for a while, but I guess if you're not sure where to go first it's hard to do anything, so really I'm just looking for some ideas for good ways to organize its growth. Any help appreciated; thanks! Quote Link to comment https://forums.phpfreaks.com/topic/154238-building-oop-php-software/ Share on other sites More sharing options...
rhodesa Posted April 15, 2009 Share Posted April 15, 2009 well, since you are writing your own CMS from scratch, I assume you have tried several other CMS systems and felt dissatisfied. i would start with a list of things that you did and didn't like about past CMS systems you've used Quote Link to comment https://forums.phpfreaks.com/topic/154238-building-oop-php-software/#findComment-810878 Share on other sites More sharing options...
LemonInflux Posted April 15, 2009 Author Share Posted April 15, 2009 Well my main reason is to see if I can. Also, I want it to be OOP and modular so I can easily extend it. My main problem is writing a neatly coded framework to intiate modules and plug-ins. Quote Link to comment https://forums.phpfreaks.com/topic/154238-building-oop-php-software/#findComment-810908 Share on other sites More sharing options...
rhodesa Posted April 15, 2009 Share Posted April 15, 2009 well, if you want a good one to look at for an example, I really like how cmsMadeSimple does it: http://www.cmsmadesimple.org/ and here is a Skeleton module they provide as an example for a user to build on: http://dev.cmsmadesimple.org/projects/skeleton Quote Link to comment https://forums.phpfreaks.com/topic/154238-building-oop-php-software/#findComment-810941 Share on other sites More sharing options...
gregor171 Posted April 17, 2009 Share Posted April 17, 2009 I'd suggest reading some oop classics (gang of four), but for future PHP architects I recommend this book: Appres - Matt Zandstra - PHP Object, Patterns, and Practice Patterns found also at wikipedia are the solution. Martin Flower is also a good author.. Greg Quote Link to comment https://forums.phpfreaks.com/topic/154238-building-oop-php-software/#findComment-812028 Share on other sites More sharing options...
Adam Posted April 17, 2009 Share Posted April 17, 2009 You'd want to use a 'factory' pattern.. http://uk3.php.net/manual/en/language.oop5.patterns.php Regards Quote Link to comment https://forums.phpfreaks.com/topic/154238-building-oop-php-software/#findComment-812153 Share on other sites More sharing options...
LemonInflux Posted April 17, 2009 Author Share Posted April 17, 2009 Sorry, I think I wasn't clear enough; I'm not asking for references to design patterns and such, I know what I'd use for which bits and how they would work. My problem is that I can't find a way to organise and plan development; I start on something and then think there'd be better places to start. So what I'm asking for is a good way of planning in which order the application will be built. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/154238-building-oop-php-software/#findComment-812568 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.