Mvc\Url::getStaticBaseUri

public getStaticBaseUri () Returns the prefix for all the generated static urls. By default /

Mvc\Url::getBaseUri

public getBaseUri () Returns the prefix for all the generated urls. By default /

Mvc\Url::getStatic

public getStatic ([mixed $uri]) Generates a URL for a static resource // Generate a URL for a static resource echo $url->getStatic("img/logo.png"); // Generate a URL for a static predefined route echo $url->getStatic(array('for' => 'logo-cdn'));

Mvc\Url::get

public get ([mixed $uri], [mixed $args], [mixed $local], [mixed $baseUri]) Generates a URL //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' => '2015')); // Generate a URL with GET arguments (/show/products?id=1&name=Carrots) echo $url->get('show/products', array('id' => 1, 'name' => 'Carrots')); // Gener

Mvc\Url::getBasePath

public getBasePath () Returns the base path

Mvc\Url::getDI

public getDI () Returns the DependencyInjector container

Mvc\Url

implements Phalcon\Mvc\UrlInterface, Phalcon\Di\InjectionAwareInterface Source on GitHub This components helps 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 publi

Mvc\Router\RouteInterface::via

abstract public via (mixed $httpMethods) ...

Mvc\Router\RouteInterface::setName

abstract public setName (mixed $name) ...

Mvc\Router\RouteInterface::setHttpMethods

abstract public setHttpMethods (mixed $httpMethods) ...