Yii 2 Lite Application Template
Yii 2 Light Application Template without Bower., (*1)
, (*2)
No Bower needed, less packages included, CDN Asset for View-Templates, let you start-up freely and refreshingly., (*3)
INTRODUCTION
This template is a lite version of Yii 2 template, which works without Bower on --no-dev
environment. Following by yidas/yii2-app-basic, this package uses CDN Asset View-Templates, but includes fixed Bower just for Yii2 Debug and Gii tool only,, (*4)
INSTALLATION
Install via Composer
If you do not have Composer, you may install it by following the instructions
at getcomposer.org., (*5)
You can then install this project template using the following command:, (*6)
composer create-project --prefer-dist yidas/yii2-app-lite
Also, you can make a minimal installation without development tool:, (*7)
composer create-project --prefer-dist --no-dev yidas/yii2-app-lite
With --no-dev project, set to prod-env or remove the debug & gii usage from config/web.php
to prevent error., (*8)
Install from an Archive File
Download yii2-app-lite-2.0.12 Archive, (*9)
-
Extract the downloaded file to a Web-accessible folder, which includes vendor already., (*10)
-
Modify the config/web.php
file by entering a secret key for the cookieValidationKey
configuration item:, (*11)
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '<secret random string goes here>',
],
- Check and modify the permission of
runtime
and web/assets
folders to 777
if needed.
DOCUMENTATION
Please refer to Yii 2 Basic Project Template Document, (*12)