Skip to content
/ mvc Public

Тестовое задание (MVC Pattern)

License

Notifications You must be signed in to change notification settings

kas-cor/mvc

Repository files navigation

MVC Pattern

Structure application

app             Source application
|- controller    Controllers
|- core         Core application
|- models       Models application
|- views        Views application
|- widgets      Widgets application
config          Configuration application
db              DB migration
|- migration    Structure
|- seeds        Data
web             Web root
|-assets        Web assets

Install dependants

Install Composer

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

Install plugin bower & npm package

composer global require "fxp/composer-asset-plugin:~1.4.5"

Install dependents

composer install

Config

Edit file .env

Migrations and seeds data

./vendor/bin/phinx migrate
./vendor/bin/phinx seed:run

Usage

Admin panel

Login admin, password qwerty