este es el codigo que tuve que copiar en cada helper:
Código PHP:
<?php
class Zend_View_Helper_LoggedInAs extends Zend_View_Helper_Abstract
{
public function loggedInAs ()
{
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
$username = $auth->getIdentity()->us_apellido;
$logoutUrl = $this->view->url(array('module' =>'default', 'controller'=>'index','action'=>'logout'), null, true);
return 'Welcome ' . $username . '. <a href="'.$logoutUrl.'">Logout</a>';
}
$request = Zend_Controller_Front::getInstance()->getRequest();
$controller = $request->getControllerName();
$action = $request->getActionName();
if($controller == 'index' && $action == 'index') {
return '';
}
$loginUrl = $this->view->url(array('module'=>'Qclientes','controller'=>'Qclientes', 'action'=>'sign'));
return '<a href="'.$loginUrl.'">Loginssssssss</a>';
}
}
?>