Db\Profiler\Item

Source on GitHub This class identifies each profile in a Phalcon\Db\Profiler Methods public setSqlStatement (mixed $sqlStatement) SQL statement related to the profile public getSqlStatement () SQL statement related to the profile public setSqlVariables (array $sqlVariables) SQL variables related to the profile public getSqlVariables () SQL variables related to the profile public setSqlBindTypes (array $sqlBindTypes) SQL bind types related to the profile public getSqlBindTypes () SQL bind types

Db\Profiler\Item::getSqlVariables

public getSqlVariables () SQL variables related to the profile

Di::getService

public getService (mixed $name) Returns a Phalcon\Di\Service instance

Config\Adapter\Json

extends class Phalcon\Config implements Countable, ArrayAccess Source on GitHub Reads JSON files and converts them to Phalcon\Config objects. Given the following configuration file: {"phalcon":{"baseuri":"\/phalcon\/"},"models":{"metadata":"memory"}} You can read it as follows: $config = new Phalcon\Config\Adapter\Json("path/config.json"); echo $config->phalcon->baseuri; echo $config->models->metadata; Methods public __construct (mixed $filePath) Phalcon\Config\Adapter\Json con

Http\Cookie::setDI

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

Mvc\DispatcherInterface

implements Phalcon\DispatcherInterface Source on GitHub Methods abstract public setControllerSuffix (mixed $controllerSuffix) ... abstract public setDefaultController (mixed $controllerName) ... abstract public setControllerName (mixed $controllerName) ... abstract public getControllerName () ... abstract public getLastController () ... abstract public getActiveController () ... abstract public setActionSuffix (mixed $actionSuffix) inherited from Phalcon\DispatcherInterface ... abstract public

Mvc\Model\ManagerInterface::getWriteConnectionService

abstract public getWriteConnectionService (Phalcon\Mvc\ModelInterface $model) ...

Apache Installation Notes

Apache is a popular and well known web server available on many platforms. Configuring Apache for Phalcon The following are potential configurations you can use to setup Apache with Phalcon. These notes are primarily focused on the configuration of the mod_rewrite module allowing to use friendly URLs and the router component. Commonly an application has the following structure: test/ app/ controllers/ models/ views/ public/ css/ img/ js/ index.php Directory unde

Mvc\Model\Resultset::filter

public Phalcon\Mvc\Model[] filter (callback $filter) Filters a resultset returning only those the developer requires $filtered = $robots->filter(function($robot){ if ($robot->id < 3) { return $robot; } });

Session\Adapter::isStarted

public isStarted () Check whether the session has been started var_dump($session->isStarted());