Mvc\Collection::getConnectionService

public getConnectionService () Returns DependencyInjection connection service

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

Forms\ElementInterface::setUserOption

abstract public setUserOption (mixed $option, mixed $value) ...

Db\Profiler

Source on GitHub Instances of Phalcon\Db can generate execution profiles on SQL statements sent to the relational database. Profiled information includes execution time in milliseconds. This helps you to identify bottlenecks in your applications. $profiler = new \Phalcon\Db\Profiler(); //Set the connection profiler $connection->setProfiler($profiler); $sql = "SELECT buyer_name, quantity, product_name FROM buyers LEFT JOIN products ON buyers.pid=products.id"; //Execute a SQL statement $con

Cli\Console

extends abstract class Phalcon\Application implements Phalcon\Di\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface Source on GitHub This component allows to create CLI applications using Phalcon Methods public addModules (array $modules) Merge modules with the existing ones application->addModules(array( 'admin' => array( 'className' => 'Multiple\Admin\Module', 'path' => '../apps/admin/Module.php' ) )); public handle ([array $arguments]) H

Session\Bag

implements Phalcon\Di\InjectionAwareInterface, Phalcon\Session\BagInterface, IteratorAggregate, Traversable, ArrayAccess, Countable Source on GitHub This component helps to separate session data into “namespaces”. Working by this way you can easily create groups of session variables into the application $user = new \Phalcon\Session\Bag('user'); $user->name = "Kimbra Johnson"; $user->age = 22; Methods public __construct (mixed $name) Phalcon\Session\Bag constructor public setDI (Phalcon\

Di::offsetSet

public boolean offsetSet (string $name, mixed $definition) Allows to register a shared service using the array syntax $di["request"] = new \Phalcon\Http\Request();

Text::startsWith

public static startsWith (mixed $str, mixed $start, [mixed $ignoreCase]) Check if a string starts with a given string echo Phalcon\Text::startsWith("Hello", "He"); // true echo Phalcon\Text::startsWith("Hello", "he", false); // false echo Phalcon\Text::startsWith("Hello", "he"); // true

Security::hasLibreSsl

public hasLibreSsl () Testing for LibreSSL

Mvc\ViewInterface::getLayoutsDir

abstract public getLayoutsDir () ...