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
Page 1 of 1
yiic parse error
#2
Posted 25 March 2010 - 01:43 PM
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.dmcinsig...-yii-framework/
Let's see if this works....
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.dmcinsig...-yii-framework/
Let's see if this works....
#3
Posted 25 March 2010 - 01:45 PM
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!!!
Sorry, I'm late... when I post this, you already solve the problem, LOL!!!
Don't say what you think, think what you say
The problem is communication! Excess of communication!
The problem is communication! Excess of communication!
Share this topic:
Page 1 of 1

Help












