Welcome Guest, Not a member yet? Register   Sign In
HMVC + addpackage help me
#1

[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.
#2

[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




Theme © iAndrew 2016 - Forum software by © MyBB