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

phalcon developer tool problem

Notice: Use of undefined constant PTOOLSPATH - assumed 'PTOOLSPATH' in C:\xammp\htdocs\phalcon-devtools-master\webtools.php on line 24

Warning: require(PTOOLSPATH/scripts/Phalcon/Web/Tools.php): failed to open stream: No such file or directory in C:\xammp\htdocs\phalcon-devtools-master\webtools.php on line 24

Fatal error: require(): Failed opening required 'PTOOLSPATH/scripts/Phalcon/Web/Tools.php' (include_path='.;C:\xammp\php\PEAR') in C:\xammp\htdocs\phalcon-devtools-master\webtools.php on line 24



98.9k
edited Jul '14

It seems devtools is not installed correctly since it's missing an environment variable https://github.com/phalcon/phalcon-devtools/blob/master/phalcon.sh#L22

edited Jul '14

I copy and pasted the code on my phalcon.sh but it's still not working. What should I do?



98.9k
edited Jul '14

You have to install devtools, or manually export the variables so they become available for devtools:

DIR=<path to devtools>
export PTOOLSPATH=$DIR
export PATH=$PATH:$DIR