Yii Framework Forum: Installing Yii 2 Demo Application - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Installing Yii 2 Demo Application

#1 User is offline   Azy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 154
  • Joined: 16-May 12

Posted 02 November 2013 - 06:45 AM

i am trying to install yii 2 and to run the basic or advanced application.

i have tried the steps given here Setting up preview of Yii2 to do this.

the steps i followed,

1 - Installed the composer

2 - Use composer to install the app alongwith dependencies(Yii): php path/to/composer.phar create-project --stability=dev yiisoft/yii2-app-basic my_yii2_trial

3 - Access app from http://localhost/my_yii2_trial/web

The problem is, i am getting this syntax error.

Parse error: syntax error, unexpected '[', expecting ')' in D:\xampp\htdocs\my_yii2_trial\vendor\yiisoft\yii2\yii\Yii.php on line 25


can any body help to resolver this issue pls


Thanks in advance,
0

#2 User is offline   Azy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 154
  • Joined: 16-May 12

Posted 02 November 2013 - 06:48 AM

Is there at least a proper article to refer to install this and view the demo application?
0

#3 User is offline   ORey 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,688
  • Joined: 20-April 09
  • Location:Moscow, Russia

Posted 02 November 2013 - 06:53 AM

Seems like you have php < 5.4.
Check the requirements.
God is real unless declared as integer
1

#4 User is offline   Azy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 154
  • Joined: 16-May 12

Posted 02 November 2013 - 07:29 AM

View PostORey, on 02 November 2013 - 06:53 AM, said:

Seems like you have php < 5.4.
Check the requirements.


Thanks a lot ORey. i had php 5.3 in my xampp. just updated to php 5.4 and now it works.



0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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