I have a model called Api.
Which I'm accessing from a shell Script.
My shell script function that is running:
public function verifyTransactions(){
$result =$this->out($this->Api->verifyNumber());
$this->out(var_dump($result));
}
this outputs]
int(2)
Here is the function in the Api model:
public function verifyNumber(){
return null;
}
I've tried making return null into return false (boolean) , return a string like "jibberish"
But still when I print it out I get the type as int with a different number in, like an object reference or something.
I'm sure I've over looked something real simple, if somebody could point it out that would be awesome ;)
Thanks
Edit:
Ah the error is I've got $this->out in there twice