extends abstract class Phalcon\DI\Injectable
implements Phalcon\Events\EventsAwareInterface, Phalcon\DI\InjectionAwareInterface, Phalcon\Mvc\ControllerInterface
Every application controller should extend this class that encapsulates all the controller functionality The controllers provide the “flow” between models and views. Controllers are responsible for processing the incoming requests from the web browser, interrogating the models for data, and passing that data on to the views for presentation.
class PeopleController extends \Phalcon\Mvc\Controller { //This action will be executed by default public function indexAction() { } public function findAction() { } public function saveAction() { //Forwards flow to the index action return $this->dispatcher->forward(array('controller' => 'people', 'action' => 'index')); } }
Phalcon\Mvc\Controller constructor
Sets the dependency injector
Returns the internal dependency injector
Sets the event manager
Returns the internal event manager
Magic method __get
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Mvc_Controller.html