Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shimabox/hello-yii2
HelloWorld on yii2
https://github.com/shimabox/hello-yii2
Last synced: 22 days ago
JSON representation
HelloWorld on yii2
- Host: GitHub
- URL: https://github.com/shimabox/hello-yii2
- Owner: shimabox
- License: other
- Created: 2017-12-17T21:45:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-04T03:58:05.000Z (almost 2 years ago)
- Last Synced: 2023-02-26T11:26:12.639Z (almost 2 years ago)
- Language: PHP
- Homepage:
- Size: 128 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# hello-yii2
HelloWorld on yii2
## Usage
1. clone
```
$ git clone https://github.com/shimabox/hello-yii2.git
```2. setup
```
$ cd hello-yii2/
$ composer install
$ chmod 777 runtime
$ chmod 777 web/assets
$ chmod 755 yii
```modify cookieValidationKey
- config/web.php
```
$config = [
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => 'enter your secret key here',
],
```3. run
```
$ php yii serve
```4. Hello World!!
http://localhost:8080/site/say/Hello+World!!
## See Also
[Yii2でHelloWorldしてみた | Shimabox Blog](https://blog.shimabox.net/2017/12/12/helloworld_on_yii2/ "Yii2でHelloWorldしてみた | Shimabox Blog")