Google News
logo
Phalcon - Interview Questions
What are the various type of application events in Phalcon?
In Phalcon, there are various tyes of application event :

Event Name Triggered
boot Executed when the application handles its first request
beforeStartModule Before initialize a module, only when modules are registered
afterStartModule After initialize a module, only when modules are registered
beforeHandleRequest Before execute the dispatch loop
afterHandleRequest After execute the dispatch loop

In Phalcon, we can pass data from controller to view by setVar() method.
$this->view->setVar("username", $user->username);
Advertisement