Cphalcon: View setVars,setVar,disable not working in php7.

Created on 5 Apr 2016  路  1Comment  路  Source: phalcon/cphalcon

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.

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.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings