Reputation: 7564
What is the best way to generate URLs within inside Zendframework 2 Controller/Action ?
Available Route : 'application'
Controller : 'Customer'
Action : 'Update'
Upvotes: 0
Views: 75
Reputation: 1623
try:
public function someAction()
{
//use url plugin in controller
$link = $this->url()->fromRoute('application', array('controller'=>'customer','action'=>'update'));
}
Upvotes: 1