Commits

wiredesignz committed 5bafc30

Update readme.md

Comments (0)

Files changed (1)

 			'libraries' => array('email'),
 		);
 	}
-    :::
+
 The Modules::$locations array may be set in the application/config.php file. ie:
 
     :::php
     $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.
 
 			parent::__construct();
 		}
 	}
-	:::
+
 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
 	:::php
 	<?php
     $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. 
 ie: $this->load->library(‘validation’)->run().
 			$this->form_validation->CI =& $this;
 		}
 	}
-	:::
+
 ### View Partials
 
 Using a Module as a view partial from within a view is as easy as writing:
 
 	:::php
 	<?php echo Modules::run('module/controller/method', $param, $...); ?> 
-	:::
 
 Parameters are optional, You may pass any number of parameters.