Example #1
0
 /**
  * Constructor
  *
  * Sets controller's app, and the default action if none given.
  * Creates the view
  */
 function __construct()
 {
     $this->app = "admin";
     parent::__construct();
     $action = param('action');
     if ($action) {
         $this->action = $action;
     } else {
         $this->action = "index";
     }
     $this->setView();
 }
Example #2
0
 /**
  * Constructor
  *
  * Sets controller's app, and the default action if none given.
  * Creates the view
  */
 function __construct()
 {
     $this->app = "front";
     parent::__construct();
     $this->setView();
 }