Commits

wiredesignz committed 56c49ed

Edited online

  • Participants
  • Parent commits 557a115

Comments (0)

Files changed (1)

 {{{
 #!php
 <?php
-/* module and controller names are different, you must include the method name also, including 'index' */
-modules::run('module/controller/method', $args, ...);
+/** module and controller names are different, you must include the method name also, including 'index' **/
+modules::run('module/controller/method', $params, $...);
 
-/* module and controller names are the same but the method is not 'index' */
-modules::run('module/method', $args, ...);
+/** module and controller names are the same but the method is not 'index' **/
+modules::run('module/method', $params, $...);
 
-/* module and controller names are the same and the method is 'index' */
-modules::run('module', $args, ...);
+/** module and controller names are the same and the method is 'index' **/
+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().