Hi, i've go the following class

class PTKit_MessageQueue{
        
        
        public static function getInstance(){
                
                $ns = new Zend_Session_Namespace('MessageQueue');
                
                if(!is_array($ns->msg)){
                        $ns->msg = array();
                }
                
                
                return $ns->msg;
        }
                
        public static function add($message){
                
                array_push(self::getInstance(), $message);
    }
    
}

This class does not work. Is like no return the instance of the namespace's
array (msg).
Any idea?
-- 
View this message in context: 
http://www.nabble.com/Error-saving-message-in-namespaces-tp23474455p23474455.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to