I have a url that redraw $ this->view->url($item['action']) this way but this variable can contain the route in the system or not, how can I do this check, check if this route exists in ZF2 ?
to identify if there is a route zend framework 2
69 views Asked by Evair Souza At
1
One option in my mind is to pass the navigation object to the view
In controller:
In view:
Another option would be to enclose the call in a try/catch. If the function throws an exception, the route does not exist