Comments (7)
I just had the same trouble. If you have ZFTool in your vendor/ directory:
- of course add
"ZFTool"
to your "modules" section in theapplication.config.php
- you may then use
php public/index.php --version
or any other of the commands - another thing i ran into: if you have the module-config-classmaps-thing activated, make sure to clear your cached file ;-)
from zftool.
I had the same issue. BUT I also have the same issue with ./vendor/bin/zf.php create module MyModule ./
.
It appears that the ZF Tool runs in vendor/bin. I got round my create module problem using the syntax:
./vendor/bin/zf.php modules MyModule path/to/application/
Of course, there's no way to force the path in the zf.php modules command.
from zftool.
I have the same problem as vagovszky.
@timoziemann I'm not sure this solves the problem so much as avoids it. I imagine it works, but I don't think zftool was intended to run like that; maybe I'm wrong.
I can see that it is related to it not being able to find the root of the application. If I hard code $basePath to '/path/to/application', it works fine.
from zftool.
This problem should be fixed by my last push. Check and let me know, thanks.
from zftool.
Now, when I run "./vendor/bin/zf.php modules" it throws an exception: "The application has thrown an exception!"
from zftool.
@vagovszky I double check right now and it's working for me. Did you installed the ZFTool in you ZF2 application using composer? Did you update it?
You can install ZFTool in a ZF2 application using this command: composer require zendframework/zftool:dev-master
. And execute vendor/bin/zf.php modules
after that.
from zftool.
I am sorry, problem was on my side. I double check it too, try on empty project and it works fine now..
from zftool.
Related Issues (20)
- No namespace in module config file after creation
- zftool.phar: command not found HOT 3
- Can't install using composer HOT 7
- Create action doesn't work HOT 2
- Enable Travis-ci service HOT 2
- Enable phpcs
- Add documentation about json response in diagnostics
- Controller creation fails when directory is missing
- Error on display config list HOT 2
- create Action fails when using project path
- ZFTool keeps saying it has thrown an exception when no exception is listed. HOT 2
- Create classmap on Windows OS HOT 2
- Zend 3 compatible? HOT 8
- zf.php version not showing version
- unable to find download link of zftool.phar HOT 1
- fail run zftool after phar create HOT 3
- zftool config list seems to be executing MVC code...
- What is the license of this project? HOT 2
- Error install composer HOT 8
- Default loading page does not load Zend framework 3 .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zftool.