Welcome Guest, Not a member yet? Register   Sign In
Two folders division in CI
#3

(11-27-2016, 09:02 PM)davy_yg Wrote: I have a quick question regarding HMVC.  I already create two folders in modules:  admin and site.

Now my question to create HMVC that works do I have to extract codeigniter folders into admin and site OR simply create another MVC folders (model, view and controllers) inside admin and site?

Thanks in advance.


index.php add 
$assign_to_config['modules_locations'] = array(
     APPPATH.'site/' => '../site/',

);

admin folder is created only in the index.php file and set application and system from codeigniter
to /admin/index.php add
$assign_to_config['modules_locations'] = array(
     APPPATH.'admin/' => '../admin/',
);


www.mysite.com/admin
Reply


Messages In This Thread
Two folders division in CI - by davy_yg - 11-25-2016, 02:27 AM
RE: Two folders division in CI - by davy_yg - 11-27-2016, 09:02 PM
RE: Two folders division in CI - by deniscaaa - 11-28-2016, 04:52 AM
RE: Two folders division in CI - by wolfgang1983 - 11-28-2016, 01:08 PM
RE: Two folders division in CI - by InsiteFX - 11-28-2016, 05:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB