R – created project appears in php dir

zend-framework

I try to create a zf project but the project appears in my php dir.

I use zf version 1.9.2

I have the zf.bat and zf.php copied to:

k:\xampp\php\zf.php and k:\xampp\php\zf.bat
I use windows xp.

But it creates the project in my php dir in stead of in my webroot.

Any idea's?

Best Answer

You have to invoke the command from the folder you want to create the project in. This would look something like:

k:\xampp\htdocs> zf create myproject

In order to be able to use the client script from everywhere in your folder structure you have to add zf.bat to your system path.

If you don't know how to do that I recommend Redmond Path which lets you manage entries in the system paths with ease.

Related Topic