1. wiredesignz
  2. codeigniter-modular-extensions-hmvc


Michael Sole  committed 22509f4 Draft

I added an explaination of how to get the vars passed as parameters to the module. I spent quite a while trying to figure this out. Perhaps if the vars were called arguments and not variables it might have been a little easier. Anyway, I hope this helps.

  • Participants
  • Parent commits 2275d33
  • Branches default

Comments (0)

Files changed (1)

File Home.wiki

View file
+You may call the parameters by using func_get_args() in the controller. This will return a numeric array with all the arguments passed in order of appearance.
 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().
 To load languages for modules it is recommended to use the Loader method which will pass the active module name to the Lang instance; ie: $this->load->language('language_file');
 A. Yes and No. Like Modular Separation, Modular Extensions makes modules “portable” to other installations. For example, if you make a nice self-contained model-controller-view set of files you can bring that MVC into another project by copying just one folder - everything is in one place instead of spread around model, view and controller folders.
 Modular HMVC means modular MVC triads. Modular Separation and Modular Extensions allows related controllers, models, libraries, views, etc. to be grouped together in module directories and used like a mini application. But, Modular Extensions goes one step further and allows those modules to “talk” to each other. You can get controller output without having to go out through the http interface again.