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.


Matthias


Lee Saferite wrote:
 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

Reply via email to