View Single Post
  #2 (permalink)  
Old 07-11-2008, 11:27 AM
megainfo megainfo is offline
Junior Member
 
Join Date: Jul 2008
Posts: 6
Default

user varible $disactivateInit = false;

in init function
function init()
{
$disable = $_SESSION['disactivateInit'];
if ( $disable == true )return ;
$response = $this->getResponse();
$response -> insert('footer', $this->view->render('footer.phtml'));
}


in showCatAction :

function showCatAction()
{
// my code
$_SESSION['disactivateInit'] =true ;
}
Reply With Quote