I think, it isn't the best way, there should be a set of separate
methods. In this way, you aren't able to define a parameter called
action, this variable is overwritten by the controller action.
However, I think that this is currently the best way because it works
with user defined routes, too.
With _getAllParams() you will get an associative array containing all
paramters. If you only want to get one specific parameter, try to use
_getParam('PARAMNAME'), e.g. $this->_getParam('controller').
Matthias
Renan Gonçalves wrote:
Yes, this method is functionaly.
ehehehe
In the manual don't say that things :(.
And now, How I can get additionals param ?
I.E: /controllerName/actionName/addtionalvalue1/addtionalvalue2
Thanks for all.
(Please, give me a good website with Zend Framework Tutorial's)
2006/10/11, Lee Saferite <[EMAIL PROTECTED]>:
I currently use:
$this->_action->getControllerName()
$this->_action->getActionName()
Not sure if this is the best way.
Lee
On 10/11/06, Matthias Zitzmann <[EMAIL PROTECTED]> wrote:
> Try to use $this->_getParam('controller') and
$this->_getParam('action')
> for that.
>
>
> Matthias
>
>
> Renan Gonçalves wrote:
> > How I can get Controller and Action name ?
> >
> > Thank's
>