Zendcasts Forum

A community of developers who work with the Zend Framework and other enterprise PHP technologies

You are not logged in.

#1 2010-08-31 18:51:43

vrxj81
New member
Registered: 2010-08-31
Posts: 3

Zend_Tool CLI not working outside of home dir

Hi,

I work on a MacBook with Snow Leopard.
I setup Zend_Tool CLI like in the ZF Manual.
zf show version gives me the right version.
I made a subdir in my home dir to house all my projects, but when I do zf create project "name" I get the error
"Context by name providersDirectory does not exist in the registry".

When I run it from the home dir, there is no problem.
Anyone knows what's going on?

Offline

#2 2010-08-31 22:00:41

samuelherzog
Member
From: Eugendorf, Austria
Registered: 2009-08-18
Posts: 27

Re: Zend_Tool CLI not working outside of home dir

I'm afraid I'm no MacBook user (yet), but a quick google search provided the following info:
Make a Symlink to your zf.sh in dir /opt/local/bin

cd /opt/local/bin
ln -s /path/to/your/zf.sh zf.sh

To even simplify this you could just link to "zf" - then you don't need to write zf.sh create project ... but only zf create project ...

Hope this helps,
Info from: http://raphaelstolt.blogspot.com/2009/0 … -os-x.html

Best regards,
Samuel

Offline

#3 2010-09-01 07:14:30

vrxj81
New member
Registered: 2010-08-31
Posts: 3

Re: Zend_Tool CLI not working outside of home dir

I already tried that.
Same error.

Offline

#4 2010-09-02 00:08:06

samuelherzog
Member
From: Eugendorf, Austria
Registered: 2009-08-18
Posts: 27

Re: Zend_Tool CLI not working outside of home dir

Did you ever make a config ?

just try

zf create config

just a guess wink

Offline

#5 2010-09-02 06:43:59

vrxj81
New member
Registered: 2010-08-31
Posts: 3

Re: Zend_Tool CLI not working outside of home dir

Of course i did smile

Now the strange thing is, I logged into my wife's account today, opened a terminal and sure enough: zf create project test just worked!
So there is something that b0rked zf under my user's account.
Now just gotta find out what messed it up.

Offline

Board footer

Powered by FluxBB