This is a basic API REST skeleton written on Phalcon PHP. Great For building an MVP for your frontend app (Vue, react, angular, or anything that can consume an API)
I am unable to get this skeleton to work with Phalcon 4.1.0 on my 64bit Windows 10 machine using Wampserver. It shows me errors in most initialization files as given below:
In config\services.php it says Undefined Phalcon\Di\FactoryDefault()
$di = new FactoryDefault();
In config\acl.php it says Undefined Phalcon\Acl
$acl->setDefaultAction(Phalcon\Acl::DENY);
In public\index.php
$app = new Micro($di);
Do I have to run composer to complete the installation? Do I need to update the composer.json file for newer versions of Phalcon. I assume I will to update it. What do I specify in the dependencies?
composer update gives below errors on command prompt:
Problem 1
- phalcon/devtools[v3.2.0, ..., v3.2.13] require ext-phalcon ~3.1 -> it has the wrong version installed (4.1.0).
- phalcon/devtools[v3.4.0, ..., v3.4.14] require ext-phalcon ~3.3 -> it has the wrong version installed (4.1.0).
- Root composer.json requires phalcon/devtools ^3.2 -> satisfiable by phalcon/devtools[v3.2.0, ..., v3.4.14].
Phalcon 4.1.0. is installed and shown by phpinfo(). I am using Php 7.4.26 and Apache 2.4.51.
TIA.
Hi,
I am unable to get this skeleton to work with Phalcon 4.1.0 on my 64bit Windows 10 machine using Wampserver. It shows me errors in most initialization files as given below:
In config\services.php it says Undefined Phalcon\Di\FactoryDefault()
$di = new FactoryDefault();
In config\acl.php it says Undefined Phalcon\Acl
$acl->setDefaultAction(Phalcon\Acl::DENY);
In public\index.php
$app = new Micro($di);
Do I have to run composer to complete the installation? Do I need to update the composer.json file for newer versions of Phalcon. I assume I will to update it. What do I specify in the dependencies?
composer update
gives below errors on command prompt:Phalcon 4.1.0. is installed and shown by phpinfo(). I am using Php 7.4.26 and Apache 2.4.51. TIA.
Regards Amal