We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

php7 f5 refresh error Access to undeclared static property: Phalcon\Di::$_default

php7 f5 refresh error Access to undeclared static property: Phalcon\Di::$_default

You use

$this->servive;

in clousure $di->set();????

edited Sep '16

This is known problem with windows. Use:

  • vagrant/docker + linux
  • nginx + php-cgi + windows
  • apache + php-cgi + windows

XAMPP + apache + it's apache handler won't work for some reason.