Skip to content

Latest commit

 

History

History
97 lines (35 loc) · 1.09 KB

JSMF-Controller.md

File metadata and controls

97 lines (35 loc) · 1.09 KB

JSMF\Controller

  • Class name: Controller
  • Namespace: JSMF

Properties

$view

public mixed $view = null
  • Visibility: public

Methods

factory

\JSMF\Controller JSMF\Controller::factory(String $namespace, String $moduleName, String $controllerName)

delievers the instance of desired controller

  • Visibility: public
  • This method is static.

Arguments

  • $namespace String - <p>(the namespace that the controllers have. Autoloading must be done outside this class)</p>
  • $moduleName String
  • $controllerName String

__construct

mixed JSMF\Controller::__construct()
  • Visibility: public

setAction

Void JSMF\Controller::setAction(String $action)

sets the action, will load the default template

  • Visibility: public

Arguments

  • $action String

callAction

Mixed JSMF\Controller::callAction(Array $actionParams)

calls one action in the controller, loads the template etc

  • Visibility: public

Arguments

  • $actionParams Array