public function Init() { MvcCore::SessionStart(); if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { $this->ajax = TRUE; $this->DisableView(); } if (get_class($this) == 'MvcCore_Controller') { $this->DisableView(); } }