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 ;
}
|