Dispatcher::setModelBinding

public setModelBinding (boolean $value) Enable/Disable model binding during dispatch

DispatcherInterface::setActionName

abstract public setActionName (mixed $actionName) ...

Micro Applications

With Phalcon you can create “Micro-Framework like” applications. By doing this, you only need to write a minimal amount of code to create a PHP application. Micro applications are suitable to implement small applications, APIs and prototypes in a practical way. use Phalcon\Mvc\Micro; $app = new Micro(); $app->get( "/say/welcome/{name}", function ($name) { echo "<h1>Welcome $name!</h1>"; } ); $app->handle(); Creating a Micro Application Phalcon\Mvc\Micro

Db\Adapter::getRealSQLStatement

public getRealSQLStatement () Active SQL statement in the object without replace bound paramters

Mvc\View::setTemplateBefore

public setTemplateBefore (mixed $templateBefore) Sets a template before the controller layout

Mvc\Application::useImplicitView

public useImplicitView (mixed $implicitView) By default. The view is implicitly buffering all the output You can full disable the view component using this method

Translate\Interpolator\IndexedArray::replacePlaceholders

public replacePlaceholders (mixed $translation, [mixed $placeholders]) Replaces placeholders by the values passed

Unit testing

Writing proper tests can assist in writing better software. If you set up proper test cases you can eliminate most functional bugs and better maintain your software. Integrating PHPunit with phalcon If you don’t already have phpunit installed, you can do it by using the following composer command: composer require phpunit/phpunit or by manually adding it to composer.json: { "require-dev": { "phpunit/phpunit": "~4.5" } } Once phpunit is installed create a directory called ‘test

Mvc\View::getControllerName

public getControllerName () Gets the name of the controller rendered

Model Relationships

Relationships between Models There are four types of relationships: one-on-one, one-to-many, many-to-one and many-to-many. The relationship may be unidirectional or bidirectional, and each can be simple (a one to one model) or more complex (a combination of models). The model manager manages foreign key constraints for these relationships, the definition of these helps referential integrity as well as easy and fast access of related records to a model. Through the implementation of relations, i