den-v / test-task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yii 2 Basic Project Template

INSTALLATION(please install composer before)

git clone https://github.com/den-v/test-task.git
cd test-task
php composer.phar global require "fxp/composer-asset-plugin:~1.0.0"
php composer.phar update

Now you should be able to access the application through the following URL, assuming basic is the directory directly under the Web root.

http://localhost/basic/web/

CONFIGURATION

Database

Edit the file config/db.php with real data, for example:

return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=yii2basic',
    'username' => 'root',
    'password' => '1234',
    'charset' => 'utf8',
];

NOTE: Yii won't create the database for you, this has to be done manually before you can access it.

Also check and edit the other files in the config/ directory to customize your application.

CREATE TABLES AND LOAD DATA

yii migrate

About

License:Other


Languages

Language:PHP 94.7%Language:CSS 2.3%Language:Batchfile 1.6%Language:ApacheConf 0.7%Language:JavaScript 0.7%