Cli\Router::setDefaults

public setDefaults (array $defaults) Sets an array of default paths. If a route is missing a path the router will use the defined here This method must not be used to set a 404 route $router->setDefaults(array( 'module' => 'common', 'action' => 'index' ));

Mvc\Collection::findFirst

public static findFirst ([array $parameters]) Allows to query the first record that match the specified conditions // What's the first robot in the robots table? $robot = Robots::findFirst(); echo 'The robot name is ', $robot->name, "\n"; // What's the first mechanical robot in robots table? $robot = Robots::findFirst([ ['type' => 'mechanical'] ]); echo 'The first mechanical robot name is ', $robot->name, "\n"; // Get first virtual robot ordered by name $robot = Robots::

Forms\Form::getLabel

public getLabel (mixed $name) Returns a label for an element

Mvc\Router\Annotations::handle

public handle ([mixed $uri]) Produce the routing parameters from the rewrite information

Session\BagInterface::initialize

abstract public initialize () ...

Flash::warning

public warning (mixed $message) Shows a HTML warning message $flash->warning('Hey, this is important');

Assets\Resource

Source on GitHub Represents an asset resource $resource = new \Phalcon\Assets\Resource('js', 'javascripts/jquery.js'); Methods public getType () public getPath () public getLocal () public getFilter () public getAttributes () public getSourcePath () ... public getTargetPath () ... public getTargetUri () ... public __construct (string $type, string $path, [boolean $local], [boolean $filter], [array $attributes]) Phalcon\Assets\Resource constructor public setType (mixed $type) Sets the resource’

Db\ResultInterface::fetchAll

abstract public fetchAll () ...

Mvc\Model\MetaData::getDataTypesNumeric

public getDataTypesNumeric (Phalcon\Mvc\ModelInterface $model) Returns attributes which types are numerical print_r($metaData->getDataTypesNumeric(new Robots()));

Mvc\Model\MetaData\Redis

extends abstract class Phalcon\Mvc\Model\MetaData implements Phalcon\Mvc\Model\MetaDataInterface, Phalcon\Di\InjectionAwareInterface Source on GitHub Stores model meta-data in the Redis. By default meta-data is stored for 48 hours (172800 seconds) use Phalcon\Mvc\Model\Metadata\Redis; $metaData = new Redis([ 'host' => '127.0.0.1', 'port' => 6379, 'persistent' => 0, 'statsKey' => '_PHCM_MM', 'lifetime' => 172800, 'index' => 2