Hello,
Is it wrong to use zf tool from a different folder with a separate
library folder (other than the project's library)?
This is the case:

I always get the same error
"Fatal error: Cannot redeclare class Zend_Loader in .."
whenever I try to create a new action or something else.

I have a separate directory for zf tool like below:
/home/username/zftool/
/home/username/zftool/bin
/home/username/zftool/library/Zend/...

I created an alias for zf.sh file on my linux machine so that I can
call it from anywhere.

With the first creation of a project (/var/www/project/), everything is okay.
But after I upload the library/Zend folders under the project's
library folder (/var/www/project/application/library),
it breaks the zf tool's working.
If I try to create a new controller, action etc., I get the cannot
redeclare error.

I found a workaround for this:
I rename the projects library folder (/var/www/project/application/
library) to something else, and the zf tool works without any error.

However, whenever I need to create something with zf tool, I need to
rename the library folder and after creation,
I need to rename it back to its previous name.

Something wrong with me or the zf tool?

thanks
scs

Reply via email to