Http\Response

implements Phalcon\Http\ResponseInterface, Phalcon\Di\InjectionAwareInterface Source on GitHub Part of the HTTP cycle is return responses to the clients. Phalcon\HTTP\Response is the Phalcon component responsible to achieve this task. HTTP responses are usually composed by headers and body. $response = new \Phalcon\Http\Response(); $response->setStatusCode(200, "OK"); $response->setContent("<html><body>Hello</body></html>"); $response->send(); Methods public __

Forms\Element\Numeric::render

public render ([array $attributes]) Renders the element widget returning html

Mvc\View::LEVEL_BEFORE_TEMPLATE

integer LEVEL_BEFORE_TEMPLATE

Mvc\Collection::validationHasFailed

public validationHasFailed () Check whether validation process has generated any messages use Phalcon\Mvc\Model\Validator\ExclusionIn as ExclusionIn; class Subscriptors extends \Phalcon\Mvc\Collection { public function validation() { this->validate(new ExclusionIn(array( 'field' => 'status', 'domain' => array('A', 'I') ))); if (this->validationHasFailed() == true) { return false; } } }

Assets\Manager::addInlineCss

public addInlineCss (mixed $content, [mixed $filter], [mixed $attributes]) Adds an inline Css to the ‘css’ collection

Acl\Adapter\Memory::addRole

public addRole (RoleInterface | string $role, [array | string $accessInherits]) Adds a role to the ACL list. Second parameter allows inheriting access data from other existing role Example: $acl->addRole(new Phalcon\Acl\Role('administrator'), 'consultant'); $acl->addRole('administrator', 'consultant');

Mvc\Model\Criteria::having

public having (mixed $having) Adds the having clause to the criteria

Db\Dialect\Postgresql::dropPrimaryKey

public dropPrimaryKey (mixed $tableName, mixed $schemaName) Generates SQL to delete primary key from a table

Assets\Manager::addResource

public addResource (Phalcon\Assets\Resource $resource) Adds a raw resource to the manager $assets->addResource(new Phalcon\Assets\Resource('css', 'css/style.css'));

Http\Response\Cookies::send

public send () Sends the cookies to the client Cookies aren’t sent if headers are sent in the current request