Google News
logo
FuelPHP - Interview Questions
How to Module configuration in FuelPHP?
To be able to use modules, you will have to tell Fuel where your modules are stored. By default, this is in the modules folder of your application. You use the 'modules_path' setting in your applications config.php file to define your module path. You can also define multiple paths. If you do, they will be searched in the sequence you have defined them.
/**
 * To enable you to split up your application into modules which can be
 * routed by the first uri segment you have to define their basepaths
 * here.
 */
'module_paths' => array(
    APPPATH.'modules'.DS,		// path to application modules
    APPPATH.'..'.DS.'globalmods'.DS	// path to our global modules
),
Advertisement