Mvc\Url
Class Phalcon\Mvc\Url
implements Phalcon\Mvc\UrlInterface, Phalcon\DI\InjectionAwareInterface
This components aids in the generation of: URIs, URLs and Paths
//Generate a URL appending the URI to the base URI echo $url->get('products/edit/1'); //Generate a URL for a predefined route echo $url->get(array('for' => 'blog-post', 'title' => 'some-cool-stuff', 'year' => '2012'));
Methods
public setDI (Phalcon\DiInterface $dependencyInjector)
Sets the DependencyInjector container