GithubHelp home page GithubHelp logo

Comments (7)

timoziemann avatar timoziemann commented on July 19, 2024

I just had the same trouble. If you have ZFTool in your vendor/ directory:

  1. of course add "ZFTool" to your "modules" section in the application.config.php
  2. you may then use php public/index.php --version or any other of the commands
  3. another thing i ran into: if you have the module-config-classmaps-thing activated, make sure to clear your cached file ;-)

from zftool.

dizzley avatar dizzley commented on July 19, 2024

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.

bickerstoff avatar bickerstoff commented on July 19, 2024

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.

ezimuel avatar ezimuel commented on July 19, 2024

This problem should be fixed by my last push. Check and let me know, thanks.

from zftool.

vagovszky avatar vagovszky commented on July 19, 2024

Now, when I run "./vendor/bin/zf.php modules" it throws an exception: "The application has thrown an exception!"

from zftool.

ezimuel avatar ezimuel commented on July 19, 2024

@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.

vagovszky avatar vagovszky commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.