How to pass data from the controller to view in Phalcon?

devquora
devquora

Posted On: Feb 22, 2018

 

The setVar() method is used to pass data from the controller to view template in Phalcon.


Usage:- $this->view->setVar("username", $user->username);

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Phalcon Interview Questions

    Explain Dependency Injection in Phalcon?

    Explain Dependency Injection in Phalcon?..

    Phalcon Interview Questions

    List basic features provided by Phalcon?

    List basic features provided by Phalcon?..