Admin_Bootstrap::_initDoctype PHP Метод

_initDoctype() защищенный Метод

Init doctype & view - first function using it
protected _initDoctype ( )
    protected function _initDoctype()
    {
        global $Campsite;
        $this->bootstrap('view');
        $view = $this->getResource('view');
        Zend_Registry::set('view', $view);
        // @todo http://framework.zend.com/manual/en/zend.application.available-resources.html
        $view->doctype('HTML5');
        // set help url
        $view->helpUrl = $Campsite['site']['help_url'];
        // set locale
        $locale = isset($_COOKIE['TOL_Language']) ? $_COOKIE['TOL_Language'] : 'en';
        $locale_fix = array('cz' => 'cs');
        $view->locale = isset($locale_fix[$locale]) ? $locale_fix[$locale] : $locale;
    }