Yii Framework Forum: Installing Yii 2.0 from an archive file - 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.0 from an archive file Rate Topic: -----

#1 User is offline   Webster 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 02-December 14

Posted 02 December 2014 - 08:54 AM

Hi
I am new to yii especially 2.0. I try to install it, according to installation steps:
(http://www.yiiframew...stallation.html)

Installing from an Archive File

Installing Yii from an archive file involves three steps:

1, Download the archive file from yiiframework.com.
2, Unpack the downloaded file to a Web-accessible folder.
3, Modify the config/web.php file by entering a secret key for the cookieValidationKey configuration item (this is done automatically if you are installing Yii using Composer):

// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => 'enter your secret key here',


However they are not as clear as they look like in respect to step 3.

I have couple of questions:
1, what is the location of the config/web.php?
2, Or did you mean main.php file in root: ...wamp\www\advanced\common\config\main.php?
3, or any other folder in which the file has to be created....

the other part shall i insert onto the file:
'components' => [

'request' => [

'enableCookieValidation' => true,

'enableCsrfValidation' => true,

'cookieValidationKey' => 'YOUR SECRET KEY HERE!!!',

],

],

Or shall I insert only 'cookieValidationKey' => 'YOUR SECRET KEY HERE!!!' - Exactly Where???

Thanks for help
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