Jonas,
I know this method :
$actionEntry = $this->context->getController()->getActionStack()-
>getLastEntry();
$currentmodule = $actionEntry->getModuleName();
$currentaction = $actionEntry->getActionName();
echo link_to("click", "$currentmodule/action");
Hope it can help you, if someone know something better, let us know :)
Pascal
On 27 juin, 21:09, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> hi all
>
> is there no module alias for the current module?
>
> why i always have to set "... link_to("click", "module/action")..."...
> is there no: "... link_to("click", "$currentModule/action")..."?
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---