Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - HMVC edit modules path
#1

[eluser]zend[/eluser]
hello I would like to change the folder path where they placed my modules.
Modules folder is in the application directory. Now I want to change the structure of the path

My directory looks like this

|-ROOT
|-sistem
|-application
|-modules


I want to modules folder is a folder outside the application

like this

|-ROOT
|-sistem
|-application
|-modules
|-plugins
|-templates
|-index.php
#2

[eluser]Basketcasesoftware[/eluser]
That'll probably require a change in the HMVC library. Which one are you using?
#3

[eluser]wiredesignz[/eluser]
Read the Modular Extensions HMVC Bitbucket wiki.

You may create a $config['modules_locations'] array to do this.
#4

[eluser]Basketcasesoftware[/eluser]
Leave to wiredesignz to come up with an easy solution. %-P
#5

[eluser]zend[/eluser]
I have allread readit on first day. dont work am put in my confing file relative path in modules folder... Problem in controller
#6

[eluser]crnalajna[/eluser]
You may try something like...

in your /config/config.php
Code:
// instead of 'modules' put '../modules'
$modules_location = '../modules';

// don't need to touch :)
$config['modules_locations'] = array(APPPATH . $modules_location .'/' => '../'.$modules_location.'/');

...and folder /modules can be outside /application folder. Smile




Theme © iAndrew 2016 - Forum software by © MyBB