centurion-project / Centurion

Centurion is an open-source CMS delivered as a flexible PHP5 Content Management Framework
http://www.centurion-project.org
197 stars 51 forks source link

Centurion_Application_Resource_View does not follow Zend updates #50

Closed aurmil closed 12 years ago

aurmil commented 12 years ago

Centurion_Application_Resource_View

    public function getView()
    {
        if (null === $this->_view) {
            $this->_view = new Centurion_View($this->getOptions());
        }

        return $this->_view;
    }

Zend_Application_Resource_View

    public function getView()
    {
        if (null === $this->_view) {
            $options = $this->getOptions();
            $this->_view = new Zend_View($options);

            if(isset($options['doctype'])) {
                $this->_view->doctype()->setDoctype(strtoupper($options['doctype']));
            }
        }
        return $this->_view;
    }

doctype management is omitted also means that this file has to be carefully updated each time his parent is modified