protected function _viewAction() { parent::_viewAction(); $this->setTitle($this->view->item->getTitle()); }
* phPit Foundation Framework - Core * This is the base execution file for phPit. The .htaccess file will take any request for a file * that does not actually exist and route it through this php file. This file may also be included in any * cron or shell script that needs access to the autoloading, database or path libraries. * * @package phPit * @author Jarvis Badgley * @copyright 2008 - 2011 Jarvis Badgley */ error_reporting(E_ALL ^ E_NOTICE); if (file_exists('config.php')) { require 'config.php'; } else { require 'config.default.php'; } require 'objects/Path.php'; require 'objects/Autoloader.php'; Autoloader::AddPath(Path::Root(Path::objects)); Autoloader::AddPath(Path::Root(Path::models)); Autoloader::AddPath(Path::Root(Path::templates)); Autoloader::AddPath(Path::Root(Path::libraries)); Autoloader::$quicklook = array('User' => Path::Root('/models/User.php'), 'ControllerAction' => Path::Root('/objects/ControllerAction.php'), 'Database' => Path::Root('/objects/Database.php'), 'DBRecord' => Path::Root('/objects/DBRecord.php'), 'DBSearch' => Path::Root('/objects/DBSearch.php'), 'File' => Path::Root('/objects/File.php'), 'Page' => Path::Root('/templates/Page.php'), 'pSubPage' => Path::Root('/templates/pSubPage.php'), 'Email' => Path::Root('/libraries/Email.php')); @(include 'functions.php'); //make php shutup about date timezones. date_default_timezone_set(defined('DATE_TIMEZONE') ? DATE_TIMEZONE : 'America/Los_Angeles'); //REQUEST_URI will only be set if main.php was triggered by apache //We only parse a controller if this value is set, so that cron jobs can load the framework as well if ($_SERVER['REQUEST_URI']) { $request = new ControllerAction($_SERVER['REQUEST_URI']); $request->run(); }