public getStatic ([mixed $uri]) Generates a URL for a static resource // Generate a URL for a static resource echo $url->getStatic("img/logo.png"); // Generate a URL for a static predefined route echo $url->getStatic(array('for' => 'logo-cdn'));
extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin
extends abstract class Phalcon\Cache\Backend implements Phalcon\Cache\BackendInterface, Serializable Source on GitHub Stores content in memory. Data is lost when the request is finished use Phalcon\Cache\Backend\Memory; use Phalcon\Cache\Frontend\Data as FrontData; // Cache data $frontCache = new FrontData(); $cache = new Memory($frontCache); // Cache arbitrary data $cache->save('my-data', [1, 2, 3, 4, 5]); // Get data $data = $cache->get('my-data'); Methods public get (mixed
integer POSITION_LAST
public static tagHtml (mixed $tagName, [mixed $parameters], [mixed $selfClose], [mixed $onlyStart], [mixed $useEol]) Builds a HTML tag echo Phalcon\Tag::tagHtml(name, parameters, selfClose, onlyStart, eol);
abstract public dropTable (mixed $tableName, [mixed $schemaName], [mixed $ifExists]) ...
Source on GitHub Constants integer NONE integer WIDTH integer HEIGHT integer AUTO integer INVERSE integer PRECISE integer TENSILE integer HORIZONTAL integer VERTICAL
extends abstract class Phalcon\Mvc\Model\Validator implements Phalcon\Mvc\Model\ValidatorInterface Source on GitHub Phalcon\Mvc\Model\Validator\ExclusionIn Check if a value is not included into a list of values use Phalcon\Mvc\Model\Validator\ExclusionIn as ExclusionInValidator; class Subscriptors extends \Phalcon\Mvc\Model { public function validation() { $this->validate(new ExclusionInValidator(array( 'field' => 'status', 'do
implements Phalcon\Translate\InterpolatorInterface Source on GitHub Methods public replacePlaceholders (mixed $translation, [mixed $placeholders]) Replaces placeholders by the values passed
Page 273 of 382