daveline
(Alan)
March 25, 2010, 6:32pm
1
Hey All, I am new to yii, and was testing out the scaffolding feature, but am getting an error when I run the following command
$ /my/path/yii/framework/yiic shell /my/path/yiiblog/index.php
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /my/path/yii/framework/YiiBase.php on line 59
I was using the blog example as my base
PHP 5.2.6
yii-1.1.1.r1907
sqllite
Any Ideas?
Thanks,
Daveline
daveline
(Alan)
March 25, 2010, 6:43pm
2
OK, I am using dreamhost, and apparently they use PHP 4.4.9 for the command line.
this can be fixed by running the following command after logging in via ssh
export PATH=/usr/local/php5/bin/:$PATH
Thanks to William (Comment #6 ) for the answer
http://blog.dmcinsights.com/2009/10/31/getting-started-with-the-yii-framework/
Let’s see if this works…
cyberpol
(Cyberpol 777)
March 25, 2010, 6:45pm
3
This error raises because your PHP CLI is using php 4.
Sorry, I’m late… when I post this, you already solve the problem, LOL!!!