Results 1 to 3 of 3

Thread: Modular Structure site problem

  1. #1
    staar2 is offline 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

  2. #2
    Elemental's Avatar
    Elemental is offline Senior Member
    Join Date
    Jul 2007
    Posts
    122

    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/');

  3. #3
    staar2 is offline 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..

Similar Threads

  1. Modular structure
    By torin in forum Model-View-Controller (MVC)
    Replies: 4
    Last Post: 02-04-2010, 04:27 PM
  2. Site layout, modular structure
    By BobiKK in forum Model-View-Controller (MVC)
    Replies: 8
    Last Post: 05-21-2009, 01:22 PM
  3. Modular web site
    By glavic in forum Concepts, Ideas, Planning
    Replies: 11
    Last Post: 03-02-2009, 05:06 AM
  4. Modular Structure AND Models
    By risoknop in forum Databases
    Replies: 1
    Last Post: 02-25-2009, 11:57 PM
  5. Modular design | structure
    By jschmidt in forum Model-View-Controller (MVC)
    Replies: 1
    Last Post: 10-17-2007, 06:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •