Mvc\Router\Group::beforeMatch

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

Text::reduceSlashes

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

Logger\AdapterInterface::begin

abstract public begin () ...

Mvc\Router\Route::getPattern

public getPattern () Returns the route’s pattern

Mvc\ViewInterface::enable

abstract public enable () ...

Registry::rewind

final public rewind () Rewinds the registry cursor to its beginning

Assets\Manager::addResourceByType

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'));

Http\Response::getCookies

public Phalcon\Http\Response\CookiesInterface getCookies () Returns coookies set by the user

Cache\Backend\File::getKey

public getKey (mixed $key) Return a file-system safe identifier for a given key

Dispatching Controllers

Phalcon\Mvc\Dispatcher is the component responsible for instantiating controllers and executing the required actions on them in an MVC application. Understanding its operation and capabilities helps us get more out of the services provided by the framework. The Dispatch Loop This is an important process that has much to do with the MVC flow itself, especially with the controller part. The work occurs within the controller dispatcher. The controller files are read, loaded, and instantiated. Then