Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (33 sloc) 1.243 kb
* Bootstrap for admin interface.
* This is the same as the public interface bootstrap, except it defines an
* ADMIN constant and sets an 'admin' parameter in the web request to ensure
* that Omeka loads the correct view scripts (and any other theme-specific
* behavior).
* @copyright Roy Rosenzweig Center for History and New Media, 2007-2011
* @license
* @package Omeka
* @access private
// Flag this as the admin theme. Used by _define_web_root() function in paths.php.
define('ADMIN', true);
// Define the directory and web paths.
include dirname(dirname(__FILE__)) . '/paths.php';
// Define the admin theme directory path.
$application = new Omeka_Application(APPLICATION_ENV);
// Configure the Theme bootstrap resource with the correct paths/URLs.
'resources' => array(
'theme' => array(
'basePath' => THEME_DIR,
'webBasePath' => WEB_THEME
// This is used by the global is_admin_theme to detect that this is the admin.
Zend_Controller_Front::getInstance()->setParam('admin', true);
Jump to Line
Something went wrong with that request. Please try again.