http://www.symfony-project.org/forum/index.php?t=msg&th=8259
> Is it possible to access the current module name / action name inside the view?
in the action use:
$this->moduleName = $this->getModuleName(); $this->actionName = $this->getActionName();
in the view use:
<?php echo $moduleName ?> <?php echo $actionName ?>
You find this info in part 6 : Inside the controller layer.
documented on: 21 August 2007, ubbels
If you need to get module and action names outside of action:
$moduleName = $sf_context->getInstance()->getModuleName(); $actionName = $sf_context->getInstance()->getActionName();
Check symfony API for moreā¦ http://www.symfony-project.org/api/symfony.html
documented on: 21 August 2007, pezetgee