Yii Framework Forum: Yii1.1 sytax error - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Yii1.1 sytax error

#1 User is offline   Br324 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 06-September 17
  • Location:Planet earth

Posted 11 September 2017 - 01:57 PM

Any ideas how to correct error - Parse error: syntax error,unexpected'protected'(T_PROTECTED)in index.php line 5

line 1 ?php
line 2 date_default_timezone_set('Europe/London');
line 3 // change the following paths if necessary
line 4 $yii=dirname(__FILE__).'/../framework/yii.php
line5 $config=dirname(__FILE__).'/protected/config/main.php

// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

require_once($yii);
Yii::createWebApplication($config)->run();

[/code]
0

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,694
  • Joined: 10-October 10
  • Location:Denmark

Posted 11 September 2017 - 02:09 PM

See your previous topic for the answer.
"Less noise - more signal"
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users