the view's setVar(),setVars(),disable() not work;
my controller code:
$this->view->setVar('test','hellWord');
$this->view->disable();
my view code:
<?php echo $test?>
then output:
Notice: Undefined variable: test in /data/wwwroot/shop/themes/views/backend/login/index.phtml on line 1
System is Ubuntu.
PHP version is 7.0.5;
Palcon version is 2.1.0r;
compiling from Phalcon branch using Zephir 0.9.2a-dev.
It's already reported. https://github.com/phalcon/cphalcon/issues/11465 https://github.com/phalcon/cphalcon/issues/11616
Find next time issue, beacause it maybe already exists ?
Phalcon don't support php 7 yet. Compilation doesn't mean support. If all tests will be passing then it will be supporting php7.
Most helpful comment
It's already reported. https://github.com/phalcon/cphalcon/issues/11465 https://github.com/phalcon/cphalcon/issues/11616
Find next time issue, beacause it maybe already exists ?
Phalcon don't support php 7 yet. Compilation doesn't mean support. If all tests will be passing then it will be supporting php7.