Go to file
2023-01-19 16:29:22 +03:00
backend hide salary sum for user without access 2023-01-17 17:28:34 +03:00
common add portfolio projects 2022-12-27 11:45:28 +03:00
console Merge pull request #105 from apuc/configure_accesses 2023-01-17 13:12:16 +03:00
docs/api fix actionFindByDate in ReportsController 2023-01-19 14:30:49 +03:00
environments add_balance 2019-06-21 18:05:58 +03:00
frontend fix reports 2023-01-19 16:29:22 +03:00
vagrant add_balance 2019-06-21 18:05:58 +03:00
.bowerrc add_balance 2019-06-21 18:05:58 +03:00
.gitignore Integration yii2-extenstion for telegram bot service 2021-08-27 12:35:22 +03:00
.htaccess add_balance 2019-06-21 18:05:58 +03:00
codeception.yml add_balance 2019-06-21 18:05:58 +03:00
composer.json add company-manager role 2022-12-01 14:12:25 +03:00
composer.lock add get resume methods as a file 2022-10-11 10:40:08 +03:00
frontend-access.log tmp commit 2022-11-10 16:00:43 +03:00
frontend-error.log tmp commit 2022-11-10 16:00:43 +03:00
init first commit 2018-10-11 11:15:09 +03:00
init.bat add_balance 2019-06-21 18:05:58 +03:00
LICENSE.md add_balance 2019-06-21 18:05:58 +03:00
log.txt Initial commit. In user-questionnaire add checkAnswers and calculateScore 2021-10-22 16:55:08 +03:00
package-lock.json Initial commit. In user-questionnaire add checkAnswers and calculateScore 2021-10-22 16:55:08 +03:00
README.md configure accesses rule 2022-12-28 11:45:57 +03:00
requirements.php add_balance 2019-06-21 18:05:58 +03:00
Vagrantfile add_balance 2019-06-21 18:05:58 +03:00
yii.bat add_balance 2019-06-21 18:05:58 +03:00

Документация API

DIRECTORY STRUCTURE

common
    config/              contains shared configurations
    mail/                contains view files for e-mails
    models/              contains model classes used in both backend and frontend
    tests/               contains tests for common classes    
console
    config/              contains console configurations
    controllers/         contains console controllers (commands)
    migrations/          contains database migrations
    models/              contains console-specific model classes
    runtime/             contains files generated during runtime
backend
    assets/              contains application assets such as JavaScript and CSS
    config/              contains backend configurations
    controllers/         contains Web controller classes
    models/              contains backend-specific model classes
    runtime/             contains files generated during runtime
    tests/               contains tests for backend application    
    views/               contains view files for the Web application
    web/                 contains the entry script and Web resources
frontend
    assets/              contains application assets such as JavaScript and CSS
    config/              contains frontend configurations
    controllers/         contains Web controller classes
    models/              contains frontend-specific model classes
    runtime/             contains files generated during runtime
    tests/               contains tests for frontend application
    views/               contains view files for the Web application
    web/                 contains the entry script and Web resources
    widgets/             contains frontend widgets
vendor/                  contains dependent 3rd-party packages
environments/            contains environment-based overrides

Для ролей поднять миграцию
php yii migrate --migrationPath=@yii/rbac/migrations
и выполнить консольный скрипт
php yii rbac/init
php yii rbac/create-editor
php yii rbac/create-company-manager-role
php yii rbac/create-default-access-rules