I just noticed that in Phalcon 3.4.2 I can not access variables that are generated in the partial view. Which I can access in Phalcon 3.2.4. For example:
I have a view file called "a.php". In that file I call partial "b.php" which generates some variables which in return after partial was processed in a.php I want to access those variables.
----- a.php ----- <?php $this->view->partial("b.php");
echo $_my_variable; ?>
--- b.php ----- <?php $_my_variable = "Hello World!"; ?>
The weird thing is that works in version 3.2.4 where as once I upgraded Phalcon to 3.4.2 - it does not work anymore. I thouhgt "partial" was acting as "includes()".
Can anybody let me know if it is a bug or there is a way to set in Phalcon to be able to access set variables in the partials. Anybody had the same issue?