MVC Namespace
Classes
BaseController
link
Build a link to an action.
Signature
link(String action, Object params, [String absoluteUrl]) : String
Parameters
- action
- Name of the action to link to
- Type: String
- params
- Parameters object
- Type: Object
- [absoluteUrl]
- If given, it will be prefixed
- Type: String
Returns
- String
- The return value is not further described
ControllerLoader
getCanonicalPath
Gets the canonical path to store the controller.
Signature
getCanonicalPath(String path, String controller, String module) : String
Parameters
- path
- The full path to the controller file
- Type: String
- controller
- Name of the controller
- Type: String
- module
- The name of the controller module
- Type: String
Returns
- String
- The return value is not further described
getBasePath
Gets the base path for a given controller.
Signature
getBasePath(Object controller, String path, String module) : String
Parameters
- controller
- The controller object
- Type: Object
- path
- The full path to the controller file
- Type: String
- module
- The name of the controller module
- Type: String
Returns
- String
- The complete base path of the controller
loadController
Load a given controller.
Signature
loadController(String path, String name, String module, Function callback) : void
Parameters
- path
- Path to the controller to load
- Type: String
- name
- Name the controller
- Type: String
- module
- Name of the module to add the controller
- Type: String
- callback
- Function to call on finish
- Type: Function