I have route zfcadmin/news
. I added route categories
as child route to zfcadmin/news
. Now I can get this route by zfcadmin/news/categories
in views:
$this->url('zfcadmin/news/categories', array('action'=>'add'));
Is it possible to get route by its own name? i.e categories
in my case:
$this->url('categories', array('action'=>'add'));
I need this, because 2nd variant is more relative. Using url
like in 1st snippet will cause dependency of module, with view with such url
usage, to module, where zfcadmin/news
route defined.
Is it possible to get route by its name, but not parent_parent/parent/child
, where child
is name of route, I want to get?