Commits

wiredesignz committed 0ec5a4c

Update readme.md

Comments (0)

Files changed (1)

 
 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.
-    :::php
+    
+	:::php
     <?php     
 	class Xyz extends MX_Controller 
 	{
 To use Modular Separation only, without HMVC, controllers will extend the CodeIgniter Controller class.
 
 You must use PHP5 style constructors in your controllers. ie:
+
     :::php
     <?php
 	class Xyz extends MX_Controller 
 All  MY_ extension libraries should include (require) their equivalent MX library file and extend their equivalent MX_ class
 
 Each module may contain a config/routes.php file where routing and a default controller can be defined for that module using: 
+	
 	:::php
 	<?php
     $route['module_name'] = 'controller_name';
 Resources may be cross loaded between modules. ie: $this->load->model('module/model');
 
 Modules::run() is designed for returning view partials, and it will return buffered output (a view) from a controller. The syntax for using modules::run is a URI style segmented string and unlimited variables.
+	
 	:::php
 	<?php
 	/** module and controller names are different, you must include the method name also, including 'index' **/
 When using form validation with MX you will need to extend the CI_Form_validation class as shown below, 
 before assigning the current controller as the $CI variable to the form_validation library. 
 This will allow your callback methods to function properly. (This has been discussed on the CI forums also). ie:
+	
 	:::php
 	<?php
 	/** application/libraries/MY_Form_validation **/