Http\RequestInterface::isHead

abstract public isHead () ...

Mvc\Model\Query::getUniqueRow

public getUniqueRow () Check if the query is programmed to get only the first row in the resultset

Increasing Performance: What’s next?

Get faster applications requires refine many aspects: server, client, network, database, web server, static sources, etc. In this chapter we highlight scenarios where you can improve performance and how detect what is really slow in your application. Profile on the Server Each application is different, the permanent profiling is important to understand where performance can be increased. Profiling gives us a real picture on what is really slow and what does not. Profiles can vary between a requ

Multi-lingual Support

The component Phalcon\Translate aids in creating multilingual applications. Applications using this component, display content in different languages, based on the user’s chosen language supported by the application. Adapters This component makes use of adapters to read translation messages from different sources in a unified way. Adapter Description Phalcon\Translate\Adapter\NativeArray Uses PHP arrays to store the messages. This is the best option in terms of performance. Component Usage Tr

Mvc\Collection::findById

public static findById (mixed $id) Find a document by its id (_id) // Find user by using \MongoId object $user = Users::findById(new \MongoId('545eb081631d16153a293a66')); // Find user by using id as sting $user = Users::findById('45cbc4a0e4123f6920000002'); // Validate input if ($user = Users::findById($_POST['id'])) { // ... }

Mvc\Model::getDirtyState

public getDirtyState () Returns one of the DIRTY_STATE_* constants telling if the record exists in the database or not

Mvc\View\Engine::getView

public getView () Returns the view component related to the adapter

Cache\Frontend\Base64::getContent

public string getContent () Returns output cached content

Mvc\Collection::getId

public MongoId getId () Returns the value of the _id property

Mvc\Model\MetaData\Xcache::MODELS_AUTOMATIC_DEFAULT_INSERT

integer MODELS_AUTOMATIC_DEFAULT_INSERT