Hello everyone,
I'm still pretty new to ZF and I apologize if this is obvious or has been asked before. I've looked for an answer to this and I seem to be missing something here.
I have a simple indexController.php file and in the indexAction, I wanted to call a non-action method so that I could organize my code a little better.
basically I have something like...
Code:
public function indexAction()
{
someNonActionMethod();
}
However, when I make that call, I get an error "call to undefined function..."
However, when I do this....
Code:
public function indexAction()
{
$this->someNonActionMethod();
}
It works. I know this is a scope issue, could someone explain why this is the case or should I be able to just call the method without the $this-> ??
Thanks in advance