Example #1
0
 public function __construct($action = null, $params = array(), $data = array())
 {
     Controller::$self = $this;
     if (!isset($action) or empty($action)) {
         $action = DEFAULT_ACTION;
     }
     $this->action = $action;
     $this->params = $params;
     $this->data = $data;
 }