Application (MVC)

MVC Application

Phalcon\Mvc\Application is a component that encapsulates all the complex operations behind instantiating every component required to run an MVC application. This is a full stack application integrated with all the additional services required to allow the MVC pattern to operate as desired.

Usage

// if the class is aware of injections
$application = $this->application;

// if the container is present
$application = $this->di->get('application');

// from outside
$application = Di::getDefault()->get('application');

API Reference

Phalcon\Application

Phalcon\Mvc

Sources

Last updated