Welcome Guest, Not a member yet? Register   Sign In
develop simple cms
#2

[eluser]GrahamDj28[/eluser]
Hi,

I am also developing a "simple CMS". But a simple CMS just does not exist.
It will always take a lot of time to get where you want to go.

What does work for me is the HMVC pattern. But I do not use MX_Controller.
I have come up with my own system that utilizes the native functions of CI. Like loading resources, also resources located in my own applications. And applications are the secret in keeping my CMS simple. It also keeps my URL's nice and clean.

Every part of my CMS is divided into loose applications. And each application has a specific purpose. One application handles CMS users. Al this does is take care of creating, editing and deleting users. Another application handles pages that are created for the website. Another the content belonging to a page. Each application is built with it's own controller, model and views. But can also have it's own helpers, libraries or configuration files. As long as it's all related to the application. Resources that applications share are placed in the normal CI locations (helpers,libraries, configs) One shared resource is the form builder that I made. Another is the handling of assets like your CSS an JS files.
I also make use of a base Model that makes writing queries as easy as 1,2,3. Al models, no matter the location and or application it belongs to, they are always extended from the base Model. Applications are called from one of the main controllers I have. Frontend and Backend. And an application can load another application or a single resource of an application.

And handling the applications is only one thing. Setting up a system to handle the main framework of your CMS and frontend is just as important to get right. And with framework i mean every view/template/model/resource that needs loading on every page call.

I hope it is clear how my structure is setup. I'm not always that good in explaining my setup. But it works for me, and I seldom get lost in my own code. Even returning after months to the code of an application is no problem. And it's not always commented Tongue


Messages In This Thread
develop simple cms - by El Forum - 12-30-2012, 04:02 PM
develop simple cms - by El Forum - 12-30-2012, 05:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB