コード例 #1
0
ファイル: Admin.php プロジェクト: Wilkins/herisson-wordpress
 /**
  * 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();
 }
コード例 #2
0
ファイル: Front.php プロジェクト: Wilkins/herisson-wordpress
 /**
  * Constructor
  *
  * Sets controller's app, and the default action if none given.
  * Creates the view
  */
 function __construct()
 {
     $this->app = "front";
     parent::__construct();
     $this->setView();
 }