CodeIgniter Forums
HMVC + addpackage help me - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: HMVC + addpackage help me (/showthread.php?tid=42642)



HMVC + addpackage help me - El Forum - 06-14-2011

[eluser]benfike[/eluser]
Hi!

I just want to seperate the backend and the frontend.

So the default application_folder is the frontend.

I make a BACKAND_PATH(package thing) for backend.

So it looks like now:

Code:
backend
-modules
-module
  -views
  -controllers
  -models
  -etc.

frontend
-modules
-module
  -views
  -controllers
  -models
  -etc.

system (with core things.)

I already modified the HMVC modules file to
Code:
APPPATH.'modules/' => '../modules/',
    BACKEND_PATH.'modules/' => '../../../'.BACKEND_PATH.'/modules/'

And already define it in index.php.

But when I want to call one of my backend modules it says:

Code:
Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.

Is this possible to make it with package thing and hmvc? If yes please help me.


HMVC + addpackage help me - El Forum - 06-14-2011

[eluser]InsiteFX[/eluser]
Code:
modules
-backend
  -views
  -controllers
  -models
  -etc.

-frontend
  -views
  -controllers
  -models
  -etc.
You can have only one modules folder in the root!

InsiteFX