Oh, i see.
No matter how many times I read it, I must have missed 'which will call a
specific, default method in the helper'
I guess with the method that I have:
' public function direct($method){
return $this->$method();
}
'
I could just change it to include a second variable that gets passed to a
method.
public function direct($method, $var=NULL){
return $this->$method($var);
}
Thanks again.
Matthew Lurz wrote:
>
> Perhaps an example will help: http://www.paste2.org/p/80416
>
> As you can see, generatePassword is called in the direct method and so if
> I want to generate a new password I can simply call:
>
> $pw = $this->_helper->passwordGenerator();
>
> If there were other methods in this helper that I wanted to access I would
> first need to get an instance of the helper with:
>
> $pwGen = $this->_helper->getHelper('PasswordGenerator');
>
> And then I could call any other method of the helper.
>
> $pwGen->someOtherMethod();
>
> Hope that makes more sense.
>
>
--
View this message in context:
http://www.nabble.com/Action-Helper-tp19730400p19743779.html
Sent from the Zend Framework mailing list archive at Nabble.com.