Welcome Guest, Not a member yet? Register   Sign In
HMVC and controllers
#3

[eluser]MgM Web[/eluser]
Ok, so when im using modules I am supposed to add new controllers inside the modules folder and not use the controllers folder? This is my structure at the moment.

Controllers:
application/controllers/welcome.php

Modules:
application/modules/menu_module/controllers/menu_module.php
application/modules/news_module/controllers/news_module.php

The menu and news are partial views that I use inside my view in the frontpage (welcome.php).
Next I am going to create a subpage "http://www.mysite.com/subpage". Normally I would create a new cotroller like this:

application/controllers/subpage.php

But this is not working, am I supposed to use the modules folder like this:

application/modules/subpage/controllers/subpage.php


Messages In This Thread
HMVC and controllers - by El Forum - 06-14-2008, 06:17 PM
HMVC and controllers - by El Forum - 06-14-2008, 07:05 PM
HMVC and controllers - by El Forum - 06-15-2008, 02:21 AM
HMVC and controllers - by El Forum - 06-15-2008, 02:29 AM
HMVC and controllers - by El Forum - 06-15-2008, 02:41 AM
HMVC and controllers - by El Forum - 06-15-2008, 02:55 AM
HMVC and controllers - by El Forum - 06-15-2008, 05:04 AM
HMVC and controllers - by El Forum - 06-15-2008, 06:19 AM
HMVC and controllers - by El Forum - 06-15-2008, 06:32 AM
HMVC and controllers - by El Forum - 01-25-2009, 06:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB