Yeah,

My version was under 0.1.5., there was't such method like this in
Zend_Filter_Input, I use 0.1.3 or something like that, ;)

Sorry guys, it was late ;)

Best regards
patS

-----Original Message-----
From: Patrycjusz Szydło [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 10:38 PM
To: [email protected]
Subject: [fw-general] extends Zend_Filter_Input

Hi,

I'am extending Zend_Filter_Input,

Here is some source code:

class Ti_Filter_Input extends Zend_Filter_Input {
        
        function __construct(& $source, $strict = true){
                parent::__construct($source,$strict);
        }
                
        public function noFilter($key){
                if(!$this->keyExists($key)){ //here give errors 
                        return false;
                }
                return Ti_Filter::noFilter($this->_source[$key]);
        }

And now when I'am calling like 
$obj = new Ti_Filter_Input($_POST);
$obj->noFilter('somekey');

It give me some errors like

Call to undefined method Ti_Filter_Input::keyExists()

It seems like Ti_Filter_Input doesn't see Zend_Filter_Input methods, but it
doesn't give any information about Zend_Filter_Input like Zend_Filter_Input
doesn't exist or something.

And the best thing is that, this is only happening when I run PHP (5.1.4) in
CGI mode. When I'm running PHP as a module on my apache - it's all OK.

Anybody see problems like that?

Best regards,
patS


Reply via email to