ok finally I solved my problem <http://stackoverflow.com/questions/18289804/zftool-create-controller-not-working> , here are the steps we need to do, suppose we want to create a project from the scratch, we can do it by zftool.phar <https://packages.zendframework.com/zftool.phar> this tool needs to know where we want to create the module it should specify where the module is so we first create our project: $ php zftool.phar create project myzendproject $ cd myzendproject $ php composer.phar install by composer.phar you will install Zend Framework into your new project, if you don't know where the heck composer.phar comes from no worries just download it: php -r "readfile('https://getcomposer.org/installer');" | php Then you come out from the project you created and create the module inside the project here we have myzendproject: $ cd .. $ php zftool.phar create module MyModule myzendproject here we go nice and splendid! such a hassle! hope will help somebody in the future. Sincerely Negin Nickparsa On Mon, Dec 8, 2014 at 12:10 PM, Negin Nickparsa <nickparsa@xxxxxxxxx> wrote: > > > > Sincerely > Negin Nickparsa > > On Mon, Dec 8, 2014 at 11:40 AM, Stuart Dallas <stuart@xxxxxxxx> wrote: > >> On Monday, Dec 8, 2014 at 7:10 pm, Negin Nickparsa <nickparsa@xxxxxxxxx>, >> wrote: >> >>> still the same: >>> >>> c:\wamp\bin\php\php5.5.12>php >>> c:\wamp\www\ZendApplication\vendor\bin\zf.php create module test >>> SRC_DIR="`pwd`" >>> cd "`dirname "$0"`" >>> cd "../zendframework/zftool" >>> BIN_TARGET="`pwd`/zf.php" >>> cd "$SRC_DIR" >>> "$BIN_TARGET" "$@" >>> >> >> Didn’t notice that you’re using Windows. The script you’re trying to >> execute is NOT a PHP script. Someone more familiar with Windows than I am >> these days will need to help you. Based on the documentation [1] I’d guess >> you haven’t installed the tool correctly, so you might want to start again. >> I’d recommend using the .phar file as suggested in the “Without >> installation” section. >> >> -Stuart >> >> [1] >> http://framework.zend.com/manual/2.0/en/modules/zendtool.introduction.html >> >> — >> Stuart Dallas >> 3ft9 Ltd >> http://3ft9.com/ >> > > Thank you,actually I used the phar file already and I had no results now > I used the manual installation with your help and it seems now I have > zftool correctley but > > I don't know how to create ZF2 folder which it is talking about > >> >> On Mon, Dec 8, 2014 at 11:03 AM, Stuart Dallas <stuart@xxxxxxxx> wrote: >>> >>>> On Monday, Dec 8, 2014 at 6:59 pm, Negin Nickparsa < >>>> nickparsa@xxxxxxxxx>, wrote: >>>> >>>>> I want to use ZF tool to create a module in zend framework >>>>> I installed zftool where I had composer.phar file which wasn't my root >>>>> directory and then it created the folder of vendor so I replaced this >>>>> vendor folder with the one it was in zend application >>>>> I went to where I installed the zend framework and I did create the >>>>> module >>>>> with this command: >>>>> >>>>> c:\wamp\www\ZendApplication\vendor\bin>php zf.php create module test >>>>> >>>>> unfortunately it didn't create the module and I have this error: >>>>> SRC_DIR="`pwd`" >>>>> cd "`dirname "$0"`" >>>>> cd "../zendframework/zftool" >>>>> BIN_TARGET="`pwd`/zf.php" >>>>> cd "$SRC_DIR" >>>>> "$BIN_TARGET" "$@" >>>>> >>>>> does anyone had any same experience?any ideas what I should do about >>>>> it? >>>>> I googled it but I found a few people reported such a thing I might be >>>>> wrong on my installation I don't know >>>> >>>> I’m not familiar with zftool, but that “error” looks awfully like a >>>> shell script. Don’t execute it with PHP, try it with bash. >>>> >>>> -Stuart >>>> >>>> — >>>> Stuart Dallas >>>> 3ft9 Ltd >>>> http://3ft9.com/ >>>> >>> >>> >