Hi, I have a problem with Phalcon, I would like set global setVars from all the pages in my system, and this global variables join with the local variable in the method, see example:
class BaseController{
function initialize(){
$this->view->setvars(array("var1 => "aaaa", "var2" => "bbbb"));
}
}
class IndexController{
function indexAction(){
$this->view->setVars(array("var3" => "ccccccc"));
//In this page, i would like that this view see the variable present on the previous BaseController and the local variable
}
function anotherAction(){
$this->view->setVars(array("var4" => "ddddddd"));
//In this page, i would like that this view see the variable present on the previous BaseController and the local variable
}
}
Is this possible? Thanks