Forms\Form::setUserOptions

public setUserOptions (array $options) Sets options for the element

Mvc\Model\ValidationFailed

extends class Phalcon\Mvc\Model\Exception implements Throwable Source on GitHub This exception is generated when a model fails to save a record Phalcon\Mvc\Model must be set up to have this behavior Methods public __construct (Model $model, Message[] $validationMessages) Phalcon\Mvc\Model\ValidationFailed constructor public getModel () Returns the model that generated the messages public getMessages () Returns the complete group of messages produced in the validation final private Exception __c

Mvc\ModelInterface::appendMessage

abstract public appendMessage (Phalcon\Mvc\Model\MessageInterface $message) ...

Mvc\ModelInterface::find

abstract public static find ([mixed $parameters]) ...

Tutorial 7: Creating a Simple REST API

In this tutorial, we will explain how to create a simple application that provides a RESTful API using the different HTTP methods: GET to retrieve and search data POST to add data PUT to update data DELETE to delete data Defining the API The API consists of the following methods: Method URL Action GET /api/robots Retrieves all robots GET /api/robots/search/Astro Searches for robots with ‘Astro’ in their name GET /api/robots/2 Retrieves robots based on primary key POST /api/robots Adds a new r

Image\AdapterInterface::save

abstract public save ([mixed $file], [mixed $quality]) ...

Mvc\Model\Message::__set_state

public static __set_state (array $message) Magic __set_state helps to re-build messages variable exporting

Translate\Adapter\Gettext::nquery

public nquery (mixed $msgid1, mixed $msgid2, mixed $count, [mixed $placeholders], [mixed $domain]) The plural version of gettext(). Some languages have more than one form for plural messages dependent on the count.

Mvc\Router::setDefaultNamespace

public setDefaultNamespace (mixed $namespaceName) Sets the name of the default namespace

Loader::registerFiles

public registerFiles (array $files, [mixed $merge]) Registers files that are “non-classes” hence need a “require”. This is very useful for including files that only have functions