[BUG]: Passing variables from the controller to the view does not work. #14491
Closed
Description
Describe the bug
There seems to be a communication problem between the controller and the view that causes the variables not to be defined in the view.
This problem happens since version 4.0.0-rc.2+4138
To Reproduce
use Phalcon\Mvc\Controller;
class IndexController extends Controller {
public function indexAction() {
$this->view->setVar('test', 'value'); // This does not work in view
$this->view->disable(); // This does not work.
echo $this->view->getVar('test'); // This works in controller.
}
}
Details
- Phalcon version: 4.0.0-rc.2+4237 x64 nts
- PHP Version: PHP 7.3.10 x64 nts
- Operating System: Windows 10 x64
- Server: Apache