Mvc\Controller

extends abstract class Phalcon\Di\Injectable implements Phalcon\Events\EventsAwareInterface, Phalcon\Di\InjectionAwareInterface, Phalcon\Mvc\ControllerInterface Source on GitHub Every application controller should extend this class that encapsulates all the controller functionality The controllers provide the “flow” between models and views. Controllers are responsible for processing the incoming requests from the web browser, interrogating the models for data, and passing that data on to the v

Mvc\View\Simple::getCache

public getCache () Returns the cache instance used to cache

Tag::select

public static string select (array $parameters, [array $data]) Builds a HTML SELECT tag using a Phalcon\Mvc\Model resultset as options echo Phalcon\Tag::select([ "robotId", Robots::find("type = "mechanical""), "using" => ["id", "name"] ]); Volt syntax: {{ select("robotId", robots, "using": ["id", "name"]) }}

Tag::weekField

public static string weekField (array $parameters) Builds a HTML input[type=”week”] tag

Cli\Dispatcher::getLastTask

public getLastTask () Returns the lastest dispatched controller

Validation\Validator::isSetOption

public isSetOption (mixed $key) Checks if an option has been defined

Db\Adapter::insertAsDict

public boolean insertAsDict (string $table, array $data, [array $dataTypes]) Inserts data into a table using custom RBDM SQL syntax //Inserting a new robot $success = $connection->insertAsDict( "robots", array( "name" => "Astro Boy", "year" => 1952 ) ); //Next SQL sentence is sent to the database system INSERT INTO `robots` (`name`, `year`) VALUES ("Astro boy", 1952);

Forms\Element::hasMessages

public hasMessages () Checks whether there are messages attached to the element

Events\EventInterface

Source on GitHub Methods abstract public getData () ... abstract public setData ([mixed $data]) ... abstract public getType () ... abstract public setType (mixed $type) ... abstract public stop () ... abstract public isStopped () ... abstract public isCancelable () ...

Text

Source on GitHub Provides utilities to work with texts Constants integer RANDOM_ALNUM integer RANDOM_ALPHA integer RANDOM_HEXDEC integer RANDOM_NUMERIC integer RANDOM_NOZERO Methods public static camelize (mixed $str, [mixed $delimiter]) Converts strings to camelize style echo Phalcon\Text::camelize('coco_bongo'); // CocoBongo echo Phalcon\Text::camelize('co_co-bon_go', '-'); // Co_coBon_go echo Phalcon\Text::camelize('co_co-bon_go', '_-'); // CoCoBonGo public static uncameli