Translate\Adapter::offsetSet

public offsetSet (string $offset, string $value) Sets a translation value

Translate\Adapter::offsetGet

public string offsetGet (string $translateKey) Returns the translation related to the given key

Translate\Adapter::offsetExists

public offsetExists (mixed $translateKey) Check whether a translation key exists

Translate\Adapter

Source on GitHub Base class for Phalcon\Translate adapters Methods public __construct (array $options) ... public setInterpolator (Phalcon\Translate\InterpolatorInterface $interpolator) ... public string t (string $translateKey, [array $placeholders]) Returns the translation string of the given key public string _ (string $translateKey, [array $placeholders]) Returns the translation string of the given key (alias of method ‘t’) public offsetSet (string $offset, string $value) Sets a translation

Translate

Source on GitHub

The MVC Architecture

Phalcon offers the object-oriented classes, necessary to implement the Model, View, Controller architecture (often referred to as MVC) in your application. This design pattern is widely used by other web frameworks and desktop applications. MVC benefits include: Isolation of business logic from the user interface and the database layer Making it clear where different types of code belong for easier maintenance If you decide to use MVC, every request to your application resources will be manag

Text::upper

public static upper (mixed $str, [mixed $encoding]) Uppercases a string, this function makes use of the mbstring extension if available echo Phalcon\Text::upper("hello"); // HELLO

Text::underscore

public static underscore (mixed $text) Makes a phrase underscored instead of spaced echo Phalcon\Text::underscore('look behind'); // 'look_behind' echo Phalcon\Text::underscore('Awesome Phalcon'); // 'Awesome_Phalcon'

Text::uncamelize

public static uncamelize (mixed $str, [mixed $delimiter]) Uncamelize strings which are camelized echo Phalcon\Text::uncamelize('CocoBongo'); // coco_bongo echo Phalcon\Text::uncamelize('CocoBongo', '-'); // coco-bongo

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