Re: Non existent class method NOT throwing an error

2009-12-23 Thread Dr. Loboto
All depends on API class:
http://www.php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.methods

On Dec 22, 1:35 am, RhythmicDevil  wrote:
> I am very confused.  If I do the following:
>  class MyClass
> {
>
>         public function mymethod()
>         {
>                 print "This is my method";
>         }
>
> }
>
> $cl = new MyClass();
>
> $cl->mymethod();
>
> $cl->no_method();
> ?>
>
> The call to no_method() will throw an error. However when I am using
> CakePHP this does not seem to be the case.
>
> Please consider the following:
>
> $api_resp = $this->API->AddWorkOrder($this->Session->read
> ('Subscriber.SubscriberId'), CHANGE_EQUIPMENT, WO_OWNER, $devices);
>
> The AddWorkOrder method does not exist but I get no errors or warnings
> even with error reporting set to max.
>
> What am I missing?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Non existent class method NOT throwing an error

2009-12-21 Thread RhythmicDevil
I am very confused.  If I do the following:
mymethod();

$cl->no_method();
?>

The call to no_method() will throw an error. However when I am using
CakePHP this does not seem to be the case.

Please consider the following:

$api_resp = $this->API->AddWorkOrder($this->Session->read
('Subscriber.SubscriberId'), CHANGE_EQUIPMENT, WO_OWNER, $devices);

The AddWorkOrder method does not exist but I get no errors or warnings
even with error reporting set to max.

What am I missing?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en