function _before() { parent::_before(); // $method = $this->_server->getMethod(); // if ($method && !method_exists($this, $method)) { // $this->_server->$method = $this->mainGet(); // } return true; }
public static function getView($file_name = 'index') { $file_name = sprintf('%s/%s.php', self::getBase(), $file_name); self::$file_name = $file_name; return new self(); }