Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-13-2008, 04:25 PM
Junior Member
 
Join Date: Mar 2008
Posts: 8
Default Modular Structure site problem

I got problems with planning site, i want to make it easyly extendable and maintainable, something like with modules news, feedback, admin section. I think that site structure should look like this.

Code:
application
-default
--controllers
--models
--views
--config

-news
--controllers
--models
--views
--config

-feedback
--controllers
--models
--views
--config

-admin
--controllers
--models
--views
--config
But i dont have no idea how to connect the admin controller with others modules, like i would see in admin module News CRUD and feedback Crud.
My solution is to do add in each module adminController? I hope you understand my not well explained problem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-14-2008, 02:46 PM
Elemental's Avatar
Senior Member
 
Join Date: Jul 2007
Posts: 119
Default

I'd suggest putting all the module structures in application/modules/ then in your bootstrap you can configure the module path with $frontController->addModuleDirectory('../application/modules/');
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-14-2008, 04:14 PM
Junior Member
 
Join Date: Mar 2008
Posts: 8
Default

I did something similar just i didnt create the modules folder, but when i tried to implement modular structure i run into many problems. I made in news module new controller News_IndexController and added the views. But when i run the code it gave error that it dosent have such view, so i saw it takes from default app the views not from news module. Other problem were with layout, so it cant find the parts of the layout header, footer, navigation..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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 11:08 AM.