public function init()
    {
        parent::init();
        
        /**
         * If not in the index action, add the following to the head section
         *      <meta name="robots" content="noindex">
         */
        $action = $this->getRequest()->getActionName();
        if ($action !== 'index') {
            $view = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('view');
            $this->view->getHelper('headMeta')->appendName('robots', 'noindex, nofollow');
        }
    }
public function init()
    {
        parent::init();
        
        /**
         * If not in the index action, add the following to the head section
         *      <meta name="robots" content="noindex">
         */
        $action = $this->getRequest()->getActionName();
        if ($action !== 'index') {
            $view = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('view');
            $this->view->getHelper('headMeta')->appendName('robots', 'noindex, nofollow');
        }
    }
public function init ( ) { parent :: init ( ) ; /**
         * If not in the index action, add the following to the head section
         *      <meta name="robots" content="noindex">
         */ $ action = $ this -> getRequest ( ) -> getActionName ( ) ; if ( $ action !== 'index' ) { $ view = Zend_Controller_Front :: getInstance ( ) -> getParam ( 'bootstrap' ) -> getResource ( 'view' ) ; $ this -> view -> getHelper ( 'headMeta' ) -> appendName ( 'robots' , 'noindex, nofollow' ) ; } }
Leave on top, so we won't miss this
Leave on top so we won t miss this