Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/11/2013, 10:28
TheM4ster
 
Fecha de Ingreso: julio-2007
Mensajes: 109
Antigüedad: 16 años, 9 meses
Puntos: 1
Problema con Zend_Auth

Hola Gente,
llevo trabajando con zend en la version Zend Framework 1.12.1, hace un buen tiempo, he llegado al tema, Zend_Auth, y es aquí donde tengo algunos problemas,
tengo este un error desde hace 4 dias, que no he podido resolver:

Código PHP:
Strict standardsDeclaration of My_Auth::getStorage() should be compatible with that of Zend_Auth::getStorage() in D:wampwwwVademecumWeb01libraryMyAuth.php on line 52 

mi archivo Auth.php en el library, contiene esto,

Código PHP:
class My_Auth extends Zend_Auth
{

//    public function __construct($namespace) {
//        $this->setStorage(new Zend_Auth_Storage_Session($namespace));
//        // do other stuff
//    }
    
public function __construct(){}
    static function 
getInstance(){
        throw new 
Zend_Auth_Exception('I do not support getInstance');
    } 
    
    
    public function 
getStorage($namespace)
    {
        if (
null === $this->_storage) {
            
/**
             * @see Zend_Auth_Storage_Session
             */
            
require_once 'Zend/Auth/Storage/Session.php';
            
$this->setStorage(new Zend_Auth_Storage_Session($namespace));
        }

        return 
$this->_storage;
    }
    
     public function 
hasIdentity($namespace)
    {
        return !
$this->getStorage($namespace)->isEmpty();
    }
    
    
      public function 
getIdentity($namespace)
    {
        
$storage $this->getStorage($namespace);

        if (
$storage->isEmpty()) {
            return 
null;
        }

        return 
$storage->read();
    }
    

alguien que me pueda ayudar a corregirlo o alguna solución,
de antemano gracias, por el apoyo.

Sldos,