I am very new to php and yii. I tried not to be the guy on the forum that wants all the answers for nothing so I bought the book yii 1.1 and PHP 5 but I can’t even get started…I am on a Mac and installed MAMP and got everything working fine. I ran this and got passing grades: http//localhost:8888/yii/requirements/. This is as far as I can get though. I really don’t understand what I am supposed to type into ‘Terminal’ to get yiic working. I have tried several different ways but just simply do not understand the instructions from the book. So I am basically dead before I even get started. Any help would be appreciated.
Thanks.Actually the other book I bought which I have really enjoyed is PHP and MYSQL for Dynamic Websites by Larry Ullman. I wanted to purchase his book on Yii but they did not have it on Kobo.
Ok can you localize php binary on your mac? Not the one installed with MAMP. What you need is cd to Yii folder in terminal, then type the command I gave you above with the correct php path.
PS Ideally you needn’t specify php path but you’d need to add it to the Path environment variable (I’m not sure it’s called like that)
I was on my mobile so I hadn’t the exact syntax. So, eventually, I’m not using OS X’s php, but MAMP’s one, like below.
To make it clearer, I open Terminal.app and go the Yii framework folder (not the root), which I renamed in my case yfrm1110 (for 1.1.10 ) and I specify the full path of the php binary and also the webapp output folder, like this:
[font="Courier New"]MBP55-tellibus:~ bennouna$ cd /Applications/MAMP/yfrm1110