Mvc\Micro\Collection

implements Phalcon\Mvc\Micro\CollectionInterface Source on GitHub Groups Micro-Mvc handlers as controllers $app = new \Phalcon\Mvc\Micro(); $collection = new Collection(); $collection->setHandler(new PostsController()); $collection->get('/posts/edit/{id}', 'edit'); $app->mount($collection); Methods protected _addMap (string | array $method, string $routePattern, mixed $handler, string $name) Internal function to add a handler to the group public setPrefix (mixed $prefix) Sets

Mvc\Model\ResultInterface

Source on GitHub Methods abstract public setDirtyState (mixed $dirtyState) ...

Tag::getDocType

public static getDocType () Get the document type declaration of content

Mvc\Micro\CollectionInterface::getPrefix

abstract public getPrefix () ...

Using Controllers

Actions are methods on a controller that handle requests. By default all public methods on a controller map to actions and are accessible by a URL. Actions are responsible for interpreting the request and creating the response. Usually responses are in the form of a rendered view, but there are other ways to create responses as well. For instance, when you access a URL like this: http://localhost/blog/posts/show/2015/the-post-title Phalcon by default will decompose each part like this: Phalcon

Mvc\View::getRenderLevel

public getRenderLevel () ...

Session\Adapter\Memcache

extends abstract class Phalcon\Session\Adapter implements Phalcon\Session\AdapterInterface Source on GitHub This adapter store sessions in memcache use Phalcon\Session\Adapter\Memcache; $session = new Memcache([ 'uniqueId' => 'my-private-app', 'host' => '127.0.0.1', 'port' => 11211, 'persistent' => true, 'lifetime' => 3600, 'prefix' => 'my_' ]); $session->start(); $session->set('var', 'some-value'); echo $session

Mvc\Model\Query\Builder::notInWhere

public notInWhere (mixed $expr, array $values, [mixed $operator]) Appends a NOT IN condition to the current conditions $builder->notInWhere('id', [1, 2, 3]);

Flash::setDI

public setDI (Phalcon\DiInterface $dependencyInjector) Sets the dependency injector

Cache\Backend\Xcache::delete

public boolean delete (int | string $keyName) Deletes a value from the cache by its key