Commits

Anonymous committed 4d34ddf

  • Participants
  • Parent commits 1e42734

Comments (0)

Files changed (1)

 
 ==Features:==
 
+The Modules::$locations and offset array may be set via application/config.php. ie:
+{{{
+#!php
+<?php
+/*
+|--------------------------------------------------------------------------
+| Modules locations
+|--------------------------------------------------------------------------
+*/
+
+    $config['modules_locations'] = array(
+        APPPATH.'modules/' => '../modules/',
+    );
+}}}
+
 All controllers can contain an $autoload class variable, which holds an array of items to load prior to running the constructor. This can be used together with module/config/autoload.php, however using the $autoload variable only works for that specific controller.
 
 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.