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::_

public string _ (string $translateKey, [array $placeholders]) Returns the translation string of the given key (alias of method ‘t’)

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::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::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'

Translate

Source on GitHub

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

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::RANDOM_HEXDEC

integer RANDOM_HEXDEC