THANK YOU! I can't tell you how long I've been trying to figure this out! For your other viewers, I highly recommend VirtualHostX coupled with Mamp. With it, you can make actual URLs (i.e. virtual hosts) like "mysite.dev" to retrieve in the browser. Easy to organize your sites in nice folders wherever you want.
When i create a project it says: "Testing Note: PHPUnit was not found in your include_path, therefore no testing actions will be created." wth!??! my phpunit is located here-> /Applications/MAMP/bin/php/php5.3.6/bin/phpunit
The funny thing is that it is in the include_path in my php.ini, should it be included somewhere else?
@maeishoj I reinstalled Zend and upgraded MAMP and am having the same "issue". The project is still made just fine you're just not getting an additional action. I've been able to do unit testing just fine later on manually...but I guess with this newer version Zend is trying to be a little more helpful and set things up for you. I'm trying to find a solution but not having much luck so far. Just know your project is still being created.
@maeishoj The page not found could be caused by multiple reasons (blah right!?) Try a couple of things first. Restart your MAMP servers. If that does not work make sure you've copied your Zend folder into this new projects folder (Because the Zend library is large it's not created every single time). If you haven't done this go into the downloaded framework folder/library/Zend...copy "Zend" into your new projects library folder and then try
@thejacenxpress Hey. i have in my htdocs the Zend framework. If I create a new project in there and either copy the zend in the new projects library or modify the index.php giving the path of the zend library (/../../Zend/library) it works! But if in htdocs I were to create a folder (let's say zend tutorials) and inside there I would create a project that I would get that PAGE NOT FOUND error, even copying the Zend in the library or giving the path as I told you! WTH!!??! Any idea?
@thejacenxpress Now I was following the Getting started with zend framework and I was creating actions via terminal, so in my case I was gonna browse to: localhost:8888/cd_collection/public/index/add and I was supposed to see "View script for controller index and script/action name add" but I get a 404 not found!!! luckly this was supposed to make things easier :D any ideas?
THANKS!!!! I had to get this working on Ubuntu 10.10. I had "php5" installed, but not "apache2" in my Synaptic Package Manager. I found the php.ini file under "etc/php5/apache2/php.ini". THANKS AGAIN!!!
Also to add I made the server stop and start again by using these commands in Terminal:
Hi, could you please tell me how I create the project in the terminal for windows users. the line alias zf=/path/path/... does not work for me?? Thanks
@webfacer The permissions can be changed through your terminal (where the version and projects can be checked/created) I actually have another video I created called CHMOD, just click my name and find it. Basically the folder that is holding your Zend download either does not allow writeable/executable permission or a parent folder (since it could be inherited)...go ahead and check out my other video and try it out, if you still have a problem send me another message to my inbox.
THANK YOU! I can't tell you how long I've been trying to figure this out! For your other viewers, I highly recommend VirtualHostX coupled with Mamp. With it, you can make actual URLs (i.e. virtual hosts) like "mysite.dev" to retrieve in the browser. Easy to organize your sites in nice folders wherever you want.
ajkochanowicz 2 months ago
Good tutorial, thanks!
nathanwindle123 4 months ago
When i create a project it says: "Testing Note: PHPUnit was not found in your include_path, therefore no testing actions will be created." wth!??! my phpunit is located here-> /Applications/MAMP/bin/php/php5.3.6/bin/phpunit
The funny thing is that it is in the include_path in my php.ini, should it be included somewhere else?
maeishoj 4 months ago
@maeishoj I reinstalled Zend and upgraded MAMP and am having the same "issue". The project is still made just fine you're just not getting an additional action. I've been able to do unit testing just fine later on manually...but I guess with this newer version Zend is trying to be a little more helpful and set things up for you. I'm trying to find a solution but not having much luck so far. Just know your project is still being created.
thejacenxpress 4 months ago
@thejacenxpress hey thanks for the reply!! I created a project and i went in the public folder to view it and i get: error occurred PAGE NOT FOUND!
Couldl you tell me why? what should i do???
maeishoj 4 months ago
@maeishoj The page not found could be caused by multiple reasons (blah right!?) Try a couple of things first. Restart your MAMP servers. If that does not work make sure you've copied your Zend folder into this new projects folder (Because the Zend library is large it's not created every single time). If you haven't done this go into the downloaded framework folder/library/Zend...copy "Zend" into your new projects library folder and then try
thejacenxpress 4 months ago
@thejacenxpress Hey. i have in my htdocs the Zend framework. If I create a new project in there and either copy the zend in the new projects library or modify the index.php giving the path of the zend library (/../../Zend/library) it works! But if in htdocs I were to create a folder (let's say zend tutorials) and inside there I would create a project that I would get that PAGE NOT FOUND error, even copying the Zend in the library or giving the path as I told you! WTH!!??! Any idea?
maeishoj 4 months ago
@thejacenxpress Now I was following the Getting started with zend framework and I was creating actions via terminal, so in my case I was gonna browse to: localhost:8888/cd_collection/public/index/add and I was supposed to see "View script for controller index and script/action name add" but I get a 404 not found!!! luckly this was supposed to make things easier :D any ideas?
maeishoj 4 months ago
@maeishoj check your inbox, gonna run outta characters on this one :)
thejacenxpress 4 months ago
Thank you very much, it really helped me!
mynameisamask 4 months ago
Thank you!
LibertyHawky 5 months ago
nice one just what I needed
chrispynegar2157 5 months ago
Thank you!
anibalruz 7 months ago
oh my goodness! Turns out it was all about restarting the server after editing the php.ini file! Doh!
MoveandFire 11 months ago
THANKS!!!! I had to get this working on Ubuntu 10.10. I had "php5" installed, but not "apache2" in my Synaptic Package Manager. I found the php.ini file under "etc/php5/apache2/php.ini". THANKS AGAIN!!!
Also to add I made the server stop and start again by using these commands in Terminal:
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
yanike 1 year ago
Comment removed
yanike 1 year ago
Comment removed
yanike 1 year ago
just want to say thank you! this tutorial is 100 times better than the zend document!
xushenxin 1 year ago
i found something like this! thx!!
adamsalej 1 year ago
Hi, could you please tell me how I create the project in the terminal for windows users. the line alias zf=/path/path/... does not work for me?? Thanks
woodstockbladon 1 year ago
Nice work !!! You saved my life :-)
I am waiting you next Zend tutorials !!!
baiacalma 1 year ago
@ edmundjoras
Yes : it does work with xampp on windows (it worked for me)
don't forget two things : edit zf.bat and change the lines
SET PHP_BIN= (...)
SET PHP_DIR= (...)
to
SET PHP_BIN=C:\(...)\xampp\php\php.exe
SET PHP_DIR=C:\(...)xampp\php
I also had to copy zf.bat and zf.php to the htdocs folder, so that when you create a new project, it'll be created in the htdocs folder.
Clemduchateau 1 year ago
Thanks a lot, it really helped ! =)
Keep it up ! =)
Clemduchateau 1 year ago
does this method also work with installing zend with xampp on windows?
edmundrojas 1 year ago
thx #2
zizznatch 1 year ago
@webfacer Also (ran out of characters) try typing in the word "sudo" before your declaration...like this:
alias zf=/path/to/zf.sh [enter]
sudo zf show version
That will give you "super user" control which will allow you to execute some files that may only be available to 'root' aka the system.
Good luck!
thejacenxpress 1 year ago
@webfacer The permissions can be changed through your terminal (where the version and projects can be checked/created) I actually have another video I created called CHMOD, just click my name and find it. Basically the folder that is holding your Zend download either does not allow writeable/executable permission or a parent folder (since it could be inherited)...go ahead and check out my other video and try it out, if you still have a problem send me another message to my inbox.
thejacenxpress 1 year ago
thx
janhei25 1 year ago