Cache\Frontend\Json

implements Phalcon\Cache\FrontendInterface Source on GitHub Allows to cache data converting/deconverting them to JSON. This adapter uses the json_encode/json_decode PHP’s functions As the data is encoded in JSON other systems accessing the same backend could process them <?php // Cache the data for 2 days $frontCache = new \Phalcon\Cache\Frontend\Json(array( "lifetime" => 172800 )); //Create the Cache setting memcached connection options $cache = new \Phalcon\Cache\Backend\Memc

Escaper\Exception

extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin

Mvc\Model\Message::getField

public getField () Returns field name related to message

Cache\Backend\Mongo::exists

public boolean exists ([string $keyName], [long $lifetime]) Checks if cache exists and it isn’t expired

Flash::clear

public clear () Clears accumulated messages when implicit flush is disabled

Http\ResponseInterface::setRawHeader

abstract public setRawHeader (mixed $header) ...

Working with Models

A model represents the information (data) of the application and the rules to manipulate that data. Models are primarily used for managing the rules of interaction with a corresponding database table. In most cases, each table in your database will correspond to one model in your application. The bulk of your application’s business logic will be concentrated in the models. Phalcon\Mvc\Model is the base for all models in a Phalcon application. It provides database independence, basic CRUD functi

Forms\Form::bind

public bind (array $data, object $entity, [array $whitelist]) Binds data to the entity

Logger\Adapter\File::logInternal

public logInternal (mixed $message, mixed $type, mixed $time, array $context) Writes the log to the file itself

ValidationInterface::getFilters

abstract public getFilters ([mixed $field]) ...