pa3py6aka/yii2-advanced-optimized
Composer 安装命令:
composer create-project pa3py6aka/yii2-advanced-optimized
包简介
Yii2 optimized template based on advanced template
关键字:
README 文档
README
Yii 2 Advanced and Slightly Optimized Template
Yii 2 Advanced Optimized Project Template is the fork of Yii2 Advanced template.
Note: This is alpha version of template. All contributings are welcome!
Whats new
- Uses Bootstrap 4
- Authorization forms in modal blocks with ajax validation
- Authorization by social networks using
yiisoft/yii2-authclient - Default RBAC. Uses three roles -
user,moderator,admin. User can manage his content, moderator can manage all users content, admin has moderators access. You can apply to admins more privileges. Manage it inconsole/controllers/RbacController.php. After changes, executephp yii rbac/initcommand in the terminal (of course you must be in project directory). - IDE autocompletion for custom components. Not forget exclude or "Mark as Plain Text" vendor/yiisoft/yii2/Yii.php file.
- Added frontend and backend url manager components. And url rules moves in separates files.
- Tabler template for backend on Bootstrap 4 (Tabler)
- And more
Installation
By Composer:composer create-project --prefer-dist pa3py6aka/yii2-advanced-optimized my-new-application
The command installs the project in a directory named my-new-application. You can choose a different
directory name if you want.
Open a console terminal, execute the init command and select dev as environment.
/path/to/php-bin/php /path/to/yii-application/init
Create a new database and adjust the components['db'] configuration in /path/to/yii-application/common/config/main-local.php accordingly.
Open a console terminal, apply migrations with command /path/to/php-bin/php /path/to/yii-application/yii migrate.
Initialize RBAC:
/path/to/php-bin/php /path/to/yii-application/yii rbac/init
Create Administrator user:
Sign up on frontend site, then go to console and assign admin role to created user:
/path/to/php-bin/php /path/to/yii-application/yii roles/assign
Contributing
All contributings are welcome!统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-06-10