Example #1
0
 /**
  * Set the mode that the controller is operating in for both a static variable in the controller so that other code
  * can retreive it, and as a variable in the view.  Ex. 'create', 'edit', 'view', 'delete'
  * 
  * @param string $newMode  Operating mode
  */
 public function setControllerMode($newMode = 'create')
 {
     $this->template->content->mode = $newMode;
     self::$_controllerMode = $newMode;
 }