InterviewSolution
Saved Bookmarks
| 1. |
How To Pass Data From Controller To View In Phalcon? |
|
Answer» The setVar() method is used to pass data from CONTROLLER to view TEMPLATE in Phalcon. USAGE:- $this->view->setVar("username", $USER->username); The setVar() method is used to pass data from controller to view template in Phalcon. Usage:- $this->view->setVar("username", $user->username); |
|