-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DevTools cannot create controllers #1506
Comments
I was able to recreate this on DevTools Version 3.4.11 as well as DevTools Version 3.4.12 (the latest which can be used with Phalcon 3) The steps for me to recreate were:
I also tried this on DevTools Version v4.1.0 and was not able to recreate it on v4.1.0. The cause of the issue is related to devtools not being able to find the config.php in the usual place, due to the rootPath path somehow getting set to / in phalcon-devtools/scripts/Phalcon/Builder/Path.php, and it falls back to recursive directory searching and a regular expression: I was able to also get it working again with a quick and dirty fix by adding an if statement so it doesn't match the wrong config file:
I'm currently working on a more proper fix for this. |
…llers Fix #1506 config file locating issue
This is fixed in v3.4.13 |
Thank you. |
I'm getting error while run "phalcon create-project test" Phalcon DevTools (4.2.0) PHP Fatal error: Uncaught Error: Class "Phalcon\Config" not found in C:\xampp\htdocs\phalcon_dev\vendor\phalcon\devtools\src\Builder\Component\AbstractComponent.php:48 Fatal error: Uncaught Error: Class "Phalcon\Config" not found in C:\xampp\htdocs\phalcon_dev\vendor\phalcon\devtools\src\Builder\Component\AbstractComponent.php:48 but i installed below : Phalcon DevTools (4.2.0) Environment: so please kindly help me |
Thank you for your efforts.
Actual Behavior
Command:
phalcon create-controller --name test
Phalcon DevTools cannot create a controller. Crash log:
My
config.php
Details
The text was updated successfully, but these errors were encountered: