Welcome Guest, Not a member yet? Register   Sign In
hey Guys
#1

[eluser]Unknown[/eluser]
Hi,
First time we are going to convert our existing cms into CI.
In our cms there are a lot of modules namely news, event, pages and many more.
We have frontend and admin part in our cms.
We have some code for example error messages like form validation, related to image upload e.t.c., we want it to place at central point i.e. we would use from each module.

Pleas guide us to creating the application in modular. Please suggest me how to keep modules.
Any help is appreciated.
Thanks
#2

[eluser]whobutsb[/eluser]
I think what you would be interested in is Expression Engine: http://expressionengine.com/
It will have all the available modules that you are looking for and then some.
#3

[eluser]ionutd[/eluser]
I think you should put code like error handling, image uploading and stuff in the /application/libraries folder.

Then put your frontend-related controllers directly into the /application/controllers folder. This way you can access your frontend via http://www.sitename.com/[index.php]/controller_name

To sepparate the admin part, create a new folder named Admin into /application/controllers and place there all your admin-related controllers. You will be able to access the admin via http://www.sitename.com/[index.php]/admin/controller_name

Furthermore, in may also want to use the same scheme in the /application/views folder. So all the views related to the frontend should stay directly in the /application/views folder and the views related to the admin section should stay into the /application/views/admin folder.

To load a view from /application/views/admin folder in a controller use:
Code:
$this->load->view('admin/view_name');
#4

[eluser]ChiefChirpa[/eluser]
For a modular approach take your pick of these:

- Modular extensions (hmvc)
- Modular separation
- Matchbox

You may also find widgets (view partials) useful in addition to one of the above three.




Theme © iAndrew 2016 - Forum software by © MyBB