Skip to content

Using this skeleton with Phalcon 4 #13

Open
@amsharma9

Description

@amsharma9

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:

  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.

Regards
Amal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions