Pages

Tuesday, October 25, 2011

Bootstrap Class

What is the role of bootstrap?

Bootstrap class defines what resources and component has to be initialized while loading the zend application.
By default front_controller is initialized.

How to use Doctype resource in zend?

- To use this doctype resource in the application we have to define doctype using view resource in the bootstrap class like


protected function _initDoctype()
{
        $this->bootstrap('view');
        $view = $this->getResource('view');
        $view->doctype('XHTML1_STRICT');
}


Now use at the top given line in the layout.phtml file. 
  echo $this->doctype() ?> 


Sunday, October 23, 2011

Why Should use zend framework?

Zend Framework is an open source application based on PHP 5. It has loosely coupled component library that can use more or less independently and MVC ( Model - View - Controller) architecture.

Zend Framework provides various features like

  1. Ajax
  2. seach
  3. Web servicec
  4. High-quality, object-oriented PHP 5 class library
  5. Syndication.

Please click here to download Zend Framework