View Single Post
  #1 (permalink)  
Old 05-28-2008, 08:01 AM
itanium7000 itanium7000 is offline
Junior Member
 
Join Date: May 2008
Posts: 6
Default How to disable init() in a action?

Hic hic,
I have a problem with function init() in my IndexAction class:
PHP Code:
class IndexController extends Zend_Cotroller_Action
{
      function 
init()
      {
            
$response $this->getResponse();
            
$response -> insert('footer'$this->view->render('footer.phtml'));
      }


      function 
indexAction()
      {
           
// my code
      
}


      function 
showCatAction()
      {
           
// my code
      
}

I want disable init() function when call showCatAction(), how do it? please help me!
__________________
Nắng sớm nhớ cha nợ cha một sự nghiệp
Chiều ta thương mẹ nợ mẹ một nàng dâu
----------------------------
Diễn đàn Nghệ An - Hà Tĩnh:
http://nghe-online.org/forum
Reply With Quote