[Installerror ] init cmd phalcon lost

Hi, this is first post, I try phalcon for first time, but have problem to install it.

first of all i use laragon on window for my environ apache 2.4.25 , php 7.1.1 and composer. I read doc of phalcon, install dll on php extention , run that command to install phalcon dev tool : "composer create-project phalcon/devtools:~3.1 projectTest --prefer-dist" after a run console in directory to try to launch cmd "phalcon" but this command return error : "Notice: Constant COMPATIBLE_VERSION5 already defined in C:\laragon\www\ttt\testp \bootstrap\autoload.php on line 106"

many hour i find how to resolve this problem, i need to test phalcon, please somebody can help me. thank!!



31.0k

Hi,

first of all: welcome

first of all bis: are you sure that phalcon extension is already installed and configured correctly ?

then:

>"composer create-project phalcon/devtools:~3.1 projectTest --prefer-dist"

where did you find that command ???

hi, thank for tour reply, i think that correctly install extension, i read doc and this link to see how to install php extension ton laragon https://forum.laragon.org/topic/40/help-with-installing-phalcon/3 i try this script test, i have this response :
phalcon

Web framework delivered as a C-extension for PHP phalcon => enabled Author => Phalcon Team and contributors Version => 3.1.2 Build Date => Apr 5 2017 15:09:29 Powered by Zephir => Version 0.9.7-1fae5e50ac

Directive => Local Value => Master Value phalcon.db.escapeidentifiers => On => On phalcon.db.forcecasting => Off => Off phalcon.orm.castonhydrate => Off => Off phalcon.orm.columnrenaming => On => On phalcon.orm.enableimplicitjoins => On => On phalcon.orm.enableliterals => On => On phalcon.orm.events => On => On phalcon.orm.exceptiononfailedsave => Off => Off phalcon.orm.ignoreunknowncolumns => Off => Off phalcon.orm.latestatebinding => Off => Off phalcon.orm.notnullvalidations => On => On phalcon.orm.virtualforeign_keys => On => On

for command composer, i add path "composer" to my variable enviroment in windows this command work fine , to get a phalcon dev tool.

ps: excuse me for me english, french is my first langage.



31.0k
edited May '17

Ok,

seems like phalcon php extension is already loaded.

Then, you should be able to follow tutorials here: https://docs.phalconphp.com/en/latest/reference/tutorial.html

If you want to scaffold some starter app or some usefull piece of code, install phalcon devtools: https://github.com/phalcon/phalcon-devtools