public getDefaults () Returns an array of default parameters
abstract public getFrom () ...
abstract public destroy () ...
public beforeMatch (mixed $beforeMatch) Sets a callback that is called if the route is matched. The developer can implement any arbitrary conditions here If the callback returns false the route is treated as not matched
public static reduceSlashes (mixed $str) Reduces multiple slashes in a string to single slashes echo Phalcon\Text::reduceSlashes("foo//bar/baz"); // foo/bar/baz echo Phalcon\Text::reduceSlashes("http://foo.bar///baz/buz"); // http://foo.bar/baz/buz
abstract public begin () ...
public getPattern () Returns the route’s pattern
abstract public enable () ...
final public rewind () Rewinds the registry cursor to its beginning
public addResourceByType (mixed $type, Phalcon\Assets\Resource $resource) Adds a resource by its type $assets->addResourceByType('css', new \Phalcon\Assets\Resource\Css('css/style.css'));
Page 344 of 382