'libraries' => array('email'),
The Modules::$locations array may be set in the application/config.php file. ie:
$config['modules_locations'] = array(
APPPATH.'modules/' => '../modules/',
Modules::run() output is buffered, so any data returned or output directly from the controller is caught and
returned to the caller. In particular, $this->load->view() can be used as you would in a normal controller, without the need for return.
Constructors are not required unless you need to load or process something when the controller is first created.
All MY_ extension libraries should include (require) their equivalent MX library file and extend their equivalent MX_ class
$route['module_name'] = 'controller_name';
Controllers may be loaded from application/controllers sub-directories.
Controllers may also be loaded from module/controllers sub-directories.
modules::run('module', $params, $...);
/** Parameters are optional, You may pass any number of parameters. **/
To call a module controller from within a controller you can use $this->load->module() or Modules::load()
and PHP5 method chaining is available for any object loaded by MX.
$this->form_validation->CI =& $this;
Using a Module as a view partial from within a view is as easy as writing:
<?php echo Modules::run('module/controller/method', $param, $...); ?>
Parameters are optional, You may pass any number of parameters.