I'm using the angular-ui modal directive. And tried to fetch data from my phalcon controller, but I get an error:
Fatal error: Uncaught Error: Access to undeclared static property: Phalcon\Di::$_default in C:\xampp\htdocs\cofiso\app\library\Base\Services.php:9 Stack trace: #0 [internal function]: Phalcon\Di->construct() #1 C:\xampp\htdocs\cofiso\app\library\Base\Services.php(9): Phalcon\Di\FactoryDefault->construct() #2 C:\xampp\htdocs\cofiso\public\index.php(25): Base\Services->__construct(Object(Phalcon\Config\Adapter\Ini)) #3 {main} Next Error: Access to undeclared static property: Phalcon\Di::$_default in C:\xampp\htdocs\cofiso\app\library\Base\Services.php on line 9
I have explained it here stackoverflow
I put all the code Angular and in the end PHP Phalcon. I hope someone can help me. Thanks in advance for your help.