Yii2 framework backup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Evgeniy Tkachenko c6529b6691 Update README.md 10 years ago
..
assets Fixes #5124: Added support to prevent duplicated form submission when using `ActiveForm` 10 years ago
base Merge branch 'master' into new-asset 10 years ago
behaviors Fixes #4919 10 years ago
caching Added error logging at `yii\caching\FileCache::gcRecursive()` 10 years ago
captcha new asset WIP: renabled asset publishing 10 years ago
console prepare for 2.0.0-rc release. 10 years ago
data Fixes #5127. 10 years ago
db prepare for 2.0.0-rc release. 10 years ago
di property codestyle framework 10 years ago
filters Fixes #4920: `yii\filters\auth\CompositeAuth` should not trigger error as long as one of the methods succeeds 10 years ago
grid Improve docs for CheckboxColumn::$checkboxOptions 10 years ago
helpers Fixes #5164: Added `Inlfector::$transliterator` that can be used to customize intl transliteration 10 years ago
i18n prepare for 2.0.0-rc release. 10 years ago
log Fixes #4501: Renamed the constant `YII_PATH` to `YII2_PATH` 10 years ago
mail property codestyle framework 10 years ago
messages Fixed irregular numeric declination for slovak locales 10 years ago
mutex property codestyle framework 10 years ago
rbac use utf8_unicode_ci instead of utf8_general_ci 10 years ago
requirements Fixes #4297: Added check for DOM extension to requirements 10 years ago
rest Fix PHPDoc [skip ci] 10 years ago
test prepare for 2.0.0-rc release. 10 years ago
validators Merge pull request #5027 from yiisoft/date-format-convert 10 years ago
views Fixes #4453: `yii message/extract` wasn't properly writing to po files in case of multiple categories 10 years ago
web prepare for 2.0.0-rc release. 10 years ago
widgets Fixes #5110. 10 years ago
.gitignore psr-4 move 11 years ago
.htaccess psr-4 move 11 years ago
BaseYii.php prepare for next release. 10 years ago
CHANGELOG.md prepare for next release. 10 years ago
LICENSE.md updated license information. 11 years ago
README.md Update README.md 10 years ago
UPGRADE.md use 1.0.0-beta2 version for composer asset plugin. 10 years ago
Yii.php DI WIP 11 years ago
classes.php prepare for 2.0.0-rc release. 10 years ago
composer.json adjusted composer.json to follow more stable versioning policy for assets 10 years ago
yii implemented markdown parsing for console command description 10 years ago
yii.bat Fixed copyright year in batch files 10 years ago

README.md

Yii PHP Framework Version 2

This is the core framework code of Yii 2.

Installation

The preferred way to install the Yii framework is through composer.

Either run

php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta2"
php composer.phar require --prefer-dist "yiisoft/yii2 2.0.0-rc" "yiisoft/yii2-composer 2.0.0-rc"

2.0.0-rc versions may be replaced by dev-master, to obtain development version.

or add

"yiisoft/yii2": "2.0.0-rc",
"yiisoft/yii2-composer": "2.0.0-rc"

to the require section of your composer.json.

Next, you should modify the entry script of your app system by including the following code at the beginning:

require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');

$yiiConfig = require(__DIR__ . '/../config/yii/web.php');
new yii\web\Application($yiiConfig);