├── .editorconfig ├── CONTRIBUTING.md ├── LICENSE ├── LICENSE.md ├── README.md ├── apps ├── advanced │ ├── .bowerrc │ ├── .gitignore │ ├── LICENSE.md │ ├── README.md │ ├── backend │ │ ├── assets │ │ │ └── AppAsset.php │ │ ├── config │ │ │ ├── .gitignore │ │ │ ├── bootstrap.php │ │ │ ├── main.php │ │ │ └── params.php │ │ ├── controllers │ │ │ └── SiteController.php │ │ ├── models │ │ │ └── .gitkeep │ │ ├── runtime │ │ │ └── .gitignore │ │ ├── views │ │ │ ├── layouts │ │ │ │ └── main.php │ │ │ └── site │ │ │ │ ├── error.php │ │ │ │ ├── index.php │ │ │ │ └── login.php │ │ └── web │ │ │ ├── .gitignore │ │ │ ├── assets │ │ │ └── .gitignore │ │ │ ├── css │ │ │ └── site.css │ │ │ ├── favicon.ico │ │ │ └── robots.txt │ ├── common │ │ ├── config │ │ │ ├── .gitignore │ │ │ ├── bootstrap.php │ │ │ ├── main.php │ │ │ └── params.php │ │ ├── mail │ │ │ ├── layouts │ │ │ │ ├── html.php │ │ │ │ └── text.php │ │ │ ├── passwordResetToken-html.php │ │ │ └── passwordResetToken-text.php │ │ └── models │ │ │ ├── LoginForm.php │ │ │ └── User.php │ ├── composer.json │ ├── console │ │ ├── config │ │ │ ├── .gitignore │ │ │ ├── bootstrap.php │ │ │ ├── main.php │ │ │ └── params.php │ │ ├── controllers │ │ │ └── .gitkeep │ │ ├── migrations │ │ │ └── m130524_201442_init.php │ │ ├── models │ │ │ └── .gitkeep │ │ └── runtime │ │ │ └── .gitignore │ ├── environments │ │ ├── dev │ │ │ ├── backend │ │ │ │ ├── config │ │ │ │ │ ├── main-local.php │ │ │ │ │ └── params-local.php │ │ │ │ └── web │ │ │ │ │ ├── index-test.php │ │ │ │ │ └── index.php │ │ │ ├── common │ │ │ │ └── config │ │ │ │ │ ├── main-local.php │ │ │ │ │ └── params-local.php │ │ │ ├── console │ │ │ │ └── config │ │ │ │ │ ├── main-local.php │ │ │ │ │ └── params-local.php │ │ │ ├── frontend │ │ │ │ ├── config │ │ │ │ │ ├── main-local.php │ │ │ │ │ └── params-local.php │ │ │ │ └── web │ │ │ │ │ ├── index-test.php │ │ │ │ │ └── index.php │ │ │ └── yii │ │ ├── index.php │ │ └── prod │ │ │ ├── backend │ │ │ ├── config │ │ │ │ ├── main-local.php │ │ │ │ └── params-local.php │ │ │ └── web │ │ │ │ └── index.php │ │ │ ├── common │ │ │ └── config │ │ │ │ ├── main-local.php │ │ │ │ └── params-local.php │ │ │ ├── console │ │ │ └── config │ │ │ │ ├── main-local.php │ │ │ │ └── params-local.php │ │ │ ├── frontend │ │ │ ├── config │ │ │ │ ├── main-local.php │ │ │ │ └── params-local.php │ │ │ └── web │ │ │ │ └── index.php │ │ │ └── yii │ ├── frontend │ │ ├── assets │ │ │ └── AppAsset.php │ │ ├── config │ │ │ ├── .gitignore │ │ │ ├── bootstrap.php │ │ │ ├── main.php │ │ │ └── params.php │ │ ├── controllers │ │ │ └── SiteController.php │ │ ├── models │ │ │ ├── ContactForm.php │ │ │ ├── PasswordResetRequestForm.php │ │ │ ├── ResetPasswordForm.php │ │ │ └── SignupForm.php │ │ ├── runtime │ │ │ └── .gitignore │ │ ├── views │ │ │ ├── layouts │ │ │ │ └── main.php │ │ │ └── site │ │ │ │ ├── about.php │ │ │ │ ├── contact.php │ │ │ │ ├── error.php │ │ │ │ ├── index.php │ │ │ │ ├── login.php │ │ │ │ ├── requestPasswordResetToken.php │ │ │ │ ├── resetPassword.php │ │ │ │ └── signup.php │ │ ├── web │ │ │ ├── .gitignore │ │ │ ├── assets │ │ │ │ └── .gitignore │ │ │ ├── css │ │ │ │ └── site.css │ │ │ ├── favicon.ico │ │ │ └── robots.txt │ │ └── widgets │ │ │ └── Alert.php │ ├── init │ ├── init.bat │ ├── requirements.php │ ├── tests │ │ ├── README.md │ │ ├── codeception.yml │ │ └── codeception │ │ │ ├── _output │ │ │ └── .gitignore │ │ │ ├── backend │ │ │ ├── .gitignore │ │ │ ├── _bootstrap.php │ │ │ ├── _output │ │ │ │ └── .gitignore │ │ │ ├── acceptance.suite.yml │ │ │ ├── acceptance │ │ │ │ ├── LoginCept.php │ │ │ │ └── _bootstrap.php │ │ │ ├── codeception.yml │ │ │ ├── functional.suite.yml │ │ │ ├── functional │ │ │ │ ├── LoginCept.php │ │ │ │ └── _bootstrap.php │ │ │ ├── unit.suite.yml │ │ │ └── unit │ │ │ │ ├── DbTestCase.php │ │ │ │ ├── TestCase.php │ │ │ │ ├── _bootstrap.php │ │ │ │ └── fixtures │ │ │ │ └── data │ │ │ │ └── .gitkeep │ │ │ ├── bin │ │ │ ├── _bootstrap.php │ │ │ ├── yii │ │ │ └── yii.bat │ │ │ ├── common │ │ │ ├── .gitignore │ │ │ ├── _bootstrap.php │ │ │ ├── _output │ │ │ │ └── .gitignore │ │ │ ├── _pages │ │ │ │ └── LoginPage.php │ │ │ ├── _support │ │ │ │ └── FixtureHelper.php │ │ │ ├── codeception.yml │ │ │ ├── fixtures │ │ │ │ ├── UserFixture.php │ │ │ │ └── data │ │ │ │ │ └── init_login.php │ │ │ ├── templates │ │ │ │ └── fixtures │ │ │ │ │ └── user.php │ │ │ ├── unit.suite.yml │ │ │ └── unit │ │ │ │ ├── DbTestCase.php │ │ │ │ ├── TestCase.php │ │ │ │ ├── _bootstrap.php │ │ │ │ ├── fixtures │ │ │ │ └── data │ │ │ │ │ └── models │ │ │ │ │ └── user.php │ │ │ │ └── models │ │ │ │ └── LoginFormTest.php │ │ │ ├── config │ │ │ ├── acceptance.php │ │ │ ├── backend │ │ │ │ ├── acceptance.php │ │ │ │ ├── config.php │ │ │ │ ├── functional.php │ │ │ │ └── unit.php │ │ │ ├── common │ │ │ │ └── unit.php │ │ │ ├── config.php │ │ │ ├── console │ │ │ │ └── unit.php │ │ │ ├── frontend │ │ │ │ ├── acceptance.php │ │ │ │ ├── config.php │ │ │ │ ├── functional.php │ │ │ │ └── unit.php │ │ │ ├── functional.php │ │ │ └── unit.php │ │ │ ├── console │ │ │ ├── .gitignore │ │ │ ├── _bootstrap.php │ │ │ ├── _output │ │ │ │ └── .gitignore │ │ │ ├── codeception.yml │ │ │ ├── unit.suite.yml │ │ │ └── unit │ │ │ │ ├── DbTestCase.php │ │ │ │ ├── TestCase.php │ │ │ │ ├── _bootstrap.php │ │ │ │ └── fixtures │ │ │ │ └── data │ │ │ │ └── .gitkeep │ │ │ └── frontend │ │ │ ├── .gitignore │ │ │ ├── _bootstrap.php │ │ │ ├── _output │ │ │ └── .gitignore │ │ │ ├── _pages │ │ │ ├── AboutPage.php │ │ │ ├── ContactPage.php │ │ │ └── SignupPage.php │ │ │ ├── acceptance.suite.yml │ │ │ ├── acceptance │ │ │ ├── AboutCept.php │ │ │ ├── ContactCept.php │ │ │ ├── HomeCept.php │ │ │ ├── LoginCept.php │ │ │ ├── SignupCest.php │ │ │ └── _bootstrap.php │ │ │ ├── codeception.yml │ │ │ ├── functional.suite.yml │ │ │ ├── functional │ │ │ ├── AboutCept.php │ │ │ ├── ContactCept.php │ │ │ ├── HomeCept.php │ │ │ ├── LoginCept.php │ │ │ ├── SignupCest.php │ │ │ └── _bootstrap.php │ │ │ ├── unit.suite.yml │ │ │ └── unit │ │ │ ├── DbTestCase.php │ │ │ ├── TestCase.php │ │ │ ├── _bootstrap.php │ │ │ ├── fixtures │ │ │ └── data │ │ │ │ └── models │ │ │ │ └── user.php │ │ │ └── models │ │ │ ├── ContactFormTest.php │ │ │ ├── PasswordResetRequestFormTest.php │ │ │ ├── ResetPasswordFormTest.php │ │ │ └── SignupFormTest.php │ └── yii.bat ├── basic │ ├── .bowerrc │ ├── .gitignore │ ├── LICENSE.md │ ├── README.md │ ├── assets │ │ └── AppAsset.php │ ├── commands │ │ └── HelloController.php │ ├── composer.json │ ├── config │ │ ├── console.php │ │ ├── db.php │ │ ├── params.php │ │ └── web.php │ ├── controllers │ │ └── SiteController.php │ ├── mail │ │ └── layouts │ │ │ └── html.php │ ├── models │ │ ├── ContactForm.php │ │ ├── LoginForm.php │ │ └── User.php │ ├── requirements.php │ ├── runtime │ │ └── .gitignore │ ├── tests │ │ ├── README.md │ │ ├── codeception.yml │ │ └── codeception │ │ │ ├── .gitignore │ │ │ ├── _bootstrap.php │ │ │ ├── _output │ │ │ └── .gitignore │ │ │ ├── _pages │ │ │ ├── AboutPage.php │ │ │ ├── ContactPage.php │ │ │ └── LoginPage.php │ │ │ ├── acceptance.suite.yml │ │ │ ├── acceptance │ │ │ ├── AboutCept.php │ │ │ ├── ContactCept.php │ │ │ ├── HomeCept.php │ │ │ ├── LoginCept.php │ │ │ └── _bootstrap.php │ │ │ ├── bin │ │ │ ├── _bootstrap.php │ │ │ ├── yii │ │ │ └── yii.bat │ │ │ ├── config │ │ │ ├── acceptance.php │ │ │ ├── config.php │ │ │ ├── functional.php │ │ │ └── unit.php │ │ │ ├── fixtures │ │ │ └── .gitignore │ │ │ ├── functional.suite.yml │ │ │ ├── functional │ │ │ ├── AboutCept.php │ │ │ ├── ContactCept.php │ │ │ ├── HomeCept.php │ │ │ ├── LoginCept.php │ │ │ └── _bootstrap.php │ │ │ ├── templates │ │ │ └── .gitignore │ │ │ ├── unit.suite.yml │ │ │ └── unit │ │ │ ├── _bootstrap.php │ │ │ ├── fixtures │ │ │ ├── .gitkeep │ │ │ └── data │ │ │ │ └── .gitkeep │ │ │ ├── models │ │ │ ├── ContactFormTest.php │ │ │ ├── LoginFormTest.php │ │ │ └── UserTest.php │ │ │ └── templates │ │ │ └── fixtures │ │ │ └── .gitkeep │ ├── views │ │ ├── layouts │ │ │ └── main.php │ │ └── site │ │ │ ├── about.php │ │ │ ├── contact.php │ │ │ ├── error.php │ │ │ ├── index.php │ │ │ └── login.php │ ├── web │ │ ├── assets │ │ │ └── .gitignore │ │ ├── css │ │ │ └── site.css │ │ ├── favicon.ico │ │ ├── index-test.php │ │ ├── index.php │ │ └── robots.txt │ ├── yii │ └── yii.bat └── benchmark │ ├── LICENSE.md │ ├── README.md │ ├── composer.json │ ├── index.php │ └── protected │ ├── .htaccess │ ├── controllers │ └── SiteController.php │ └── vendor │ └── .gitignore ├── build ├── .htaccess ├── build ├── build.bat ├── build.xml └── controllers │ ├── AppController.php │ ├── ClassmapController.php │ ├── MimeTypeController.php │ ├── PhpDocController.php │ ├── ReleaseController.php │ ├── TranslationController.php │ └── views │ └── translation │ └── report_html.php ├── composer.json ├── composer.lock ├── docs ├── documentation_style_guide.md ├── guide-de │ └── README.md ├── guide-es │ ├── README.md │ ├── caching-data.md │ ├── caching-fragment.md │ ├── caching-http.md │ ├── caching-overview.md │ ├── caching-page.md │ ├── concept-aliases.md │ ├── concept-autoloading.md │ ├── concept-behaviors.md │ ├── concept-components.md │ ├── concept-configurations.md │ ├── concept-di-container.md │ ├── concept-events.md │ ├── concept-properties.md │ ├── concept-service-locator.md │ ├── db-dao.md │ ├── db-query-builder.md │ ├── helper-array.md │ ├── helper-html.md │ ├── helper-overview.md │ ├── helper-url.md │ ├── images │ │ ├── application-structure.graphml │ │ ├── application-structure.png │ │ ├── request-lifecycle.graphml │ │ ├── request-lifecycle.png │ │ ├── start-app-installed.png │ │ ├── start-country-list.png │ │ ├── start-entry-confirmation.png │ │ ├── start-form-validation.png │ │ ├── start-gii-country-grid.png │ │ ├── start-gii-country-update.png │ │ ├── start-gii-crud-preview.png │ │ ├── start-gii-crud.png │ │ ├── start-gii-model-preview.png │ │ ├── start-gii-model.png │ │ ├── start-gii.png │ │ └── start-hello-world.png │ ├── intro-upgrade-from-v1.md │ ├── intro-yii.md │ ├── output-theming.md │ ├── rest-authentication.md │ ├── rest-controllers.md │ ├── rest-error-handling.md │ ├── rest-quick-start.md │ ├── rest-rate-limiting.md │ ├── rest-resources.md │ ├── rest-response-formatting.md │ ├── rest-routing.md │ ├── rest-versioning.md │ ├── runtime-bootstrapping.md │ ├── runtime-handling-errors.md │ ├── runtime-logging.md │ ├── runtime-overview.md │ ├── runtime-requests.md │ ├── runtime-responses.md │ ├── runtime-routing.md │ ├── runtime-sessions-cookies.md │ ├── start-databases.md │ ├── start-forms.md │ ├── start-gii.md │ ├── start-hello.md │ ├── start-installation.md │ ├── start-looking-ahead.md │ ├── start-workflow.md │ ├── structure-application-components.md │ ├── structure-applications.md │ ├── structure-assets.md │ ├── structure-controllers.md │ ├── structure-entry-scripts.md │ ├── structure-extensions.md │ ├── structure-filters.md │ ├── structure-models.md │ ├── structure-modules.md │ ├── structure-overview.md │ ├── structure-views.md │ ├── structure-widgets.md │ ├── tutorial-core-validators.md │ ├── tutorial-yii-integration.md │ ├── widget-bootstrap.md │ └── widget-jui.md ├── guide-fr │ ├── README.md │ ├── images │ │ ├── advanced-app-configs.graphml │ │ ├── advanced-app-configs.png │ │ ├── application-structure.graphml │ │ ├── application-structure.png │ │ ├── gii-entry.png │ │ ├── gii-preview.png │ │ ├── rbac-access-check-1.graphml │ │ ├── rbac-access-check-1.png │ │ ├── rbac-access-check-2.graphml │ │ ├── rbac-access-check-2.png │ │ ├── rbac-access-check-3.graphml │ │ ├── rbac-access-check-3.png │ │ ├── rbac-hierarchy-1.graphml │ │ ├── rbac-hierarchy-1.png │ │ ├── rbac-hierarchy-2.graphml │ │ ├── rbac-hierarchy-2.png │ │ ├── request-lifecycle.graphml │ │ ├── request-lifecycle.png │ │ ├── start-app-installed.png │ │ ├── start-country-list.png │ │ ├── start-entry-confirmation.png │ │ ├── start-form-validation.png │ │ ├── start-gii-country-grid.png │ │ ├── start-gii-country-update.png │ │ ├── start-gii-crud-preview.png │ │ ├── start-gii-crud.png │ │ ├── start-gii-model-preview.png │ │ ├── start-gii-model.png │ │ ├── start-gii.png │ │ └── start-hello-world.png │ ├── intro-upgrade-from-v1.md │ ├── intro-yii.md │ ├── start-databases.md │ ├── start-forms.md │ ├── start-gii.md │ ├── start-hello.md │ ├── start-installation.md │ ├── start-looking-ahead.md │ ├── start-workflow.md │ ├── structure-entry-scripts.md │ └── structure-overview.md ├── guide-it │ ├── README.md │ ├── intro-upgrade-from-v1.md │ ├── intro-yii.md │ └── start-installation.md ├── guide-ja │ ├── README.md │ ├── caching-data.md │ ├── caching-fragment.md │ ├── caching-http.md │ ├── caching-overview.md │ ├── caching-page.md │ ├── concept-aliases.md │ ├── concept-autoloading.md │ ├── concept-behaviors.md │ ├── concept-components.md │ ├── concept-configurations.md │ ├── concept-di-container.md │ ├── concept-events.md │ ├── concept-properties.md │ ├── concept-service-locator.md │ ├── db-active-record.md │ ├── db-dao.md │ ├── db-elasticsearch.md │ ├── db-migrations.md │ ├── db-mongodb.md │ ├── db-query-builder.md │ ├── db-redis.md │ ├── db-sphinx.md │ ├── helper-array.md │ ├── helper-html.md │ ├── helper-overview.md │ ├── helper-url.md │ ├── images │ │ ├── advanced-app-configs.graphml │ │ ├── advanced-app-configs.png │ │ ├── application-lifecycle.graphml │ │ ├── application-lifecycle.png │ │ ├── application-structure.graphml │ │ ├── application-structure.png │ │ ├── gii-entry.png │ │ ├── gii-preview.png │ │ ├── rbac-access-check-1.graphml │ │ ├── rbac-access-check-1.png │ │ ├── rbac-access-check-2.graphml │ │ ├── rbac-access-check-2.png │ │ ├── rbac-access-check-3.graphml │ │ ├── rbac-access-check-3.png │ │ ├── rbac-hierarchy-1.graphml │ │ ├── rbac-hierarchy-1.png │ │ ├── rbac-hierarchy-2.graphml │ │ ├── rbac-hierarchy-2.png │ │ ├── request-lifecycle.graphml │ │ ├── request-lifecycle.png │ │ ├── start-app-installed.png │ │ ├── start-country-list.png │ │ ├── start-entry-confirmation.png │ │ ├── start-form-validation.png │ │ ├── start-gii-country-grid.png │ │ ├── start-gii-country-update.png │ │ ├── start-gii-crud-preview.png │ │ ├── start-gii-crud.png │ │ ├── start-gii-model-preview.png │ │ ├── start-gii-model.png │ │ ├── start-gii.png │ │ └── start-hello-world.png │ ├── input-file-upload.md │ ├── input-forms.md │ ├── input-multiple-models.md │ ├── input-tabular-input.md │ ├── input-validation.md │ ├── intro-upgrade-from-v1.md │ ├── intro-yii.md │ ├── output-client-scripts.md │ ├── output-data-providers.md │ ├── output-data-widgets.md │ ├── output-formatter.md │ ├── output-pagination.md │ ├── output-sorting.md │ ├── output-theming.md │ ├── rest-authentication.md │ ├── rest-controllers.md │ ├── rest-error-handling.md │ ├── rest-quick-start.md │ ├── rest-rate-limiting.md │ ├── rest-resources.md │ ├── rest-response-formatting.md │ ├── rest-routing.md │ ├── rest-versioning.md │ ├── runtime-bootstrapping.md │ ├── runtime-handling-errors.md │ ├── runtime-logging.md │ ├── runtime-overview.md │ ├── runtime-requests.md │ ├── runtime-responses.md │ ├── runtime-routing.md │ ├── runtime-sessions-cookies.md │ ├── security-auth-clients.md │ ├── security-authentication.md │ ├── security-authorization.md │ ├── security-best-practices.md │ ├── security-passwords.md │ ├── start-databases.md │ ├── start-forms.md │ ├── start-gii.md │ ├── start-hello.md │ ├── start-installation.md │ ├── start-looking-ahead.md │ ├── start-workflow.md │ ├── structure-application-components.md │ ├── structure-applications.md │ ├── structure-assets.md │ ├── structure-controllers.md │ ├── structure-entry-scripts.md │ ├── structure-extensions.md │ ├── structure-filters.md │ ├── structure-models.md │ ├── structure-modules.md │ ├── structure-overview.md │ ├── structure-views.md │ ├── structure-widgets.md │ ├── test-acceptance.md │ ├── test-environment-setup.md │ ├── test-fixtures.md │ ├── test-functional.md │ ├── test-overview.md │ ├── test-unit.md │ ├── tool-api-doc.md │ ├── tool-debugger.md │ ├── tool-gii.md │ ├── tutorial-advanced-app.md │ ├── tutorial-console.md │ ├── tutorial-core-validators.md │ ├── tutorial-i18n.md │ ├── tutorial-mailing.md │ ├── tutorial-performance-tuning.md │ ├── tutorial-shared-hosting.md │ ├── tutorial-start-from-scratch.md │ ├── tutorial-template-engines.md │ ├── tutorial-yii-integration.md │ ├── widget-bootstrap.md │ └── widget-jui.md ├── guide-pl │ ├── README.md │ └── intro-yii.md ├── guide-pt-BR │ ├── README.md │ ├── images │ │ ├── advanced-app-configs.graphml │ │ ├── advanced-app-configs.png │ │ ├── application-structure.graphml │ │ ├── application-structure.png │ │ ├── gii-entry.png │ │ ├── gii-preview.png │ │ ├── rbac-access-check-1.graphml │ │ ├── rbac-access-check-1.png │ │ ├── rbac-access-check-2.graphml │ │ ├── rbac-access-check-2.png │ │ ├── rbac-access-check-3.graphml │ │ ├── rbac-access-check-3.png │ │ ├── rbac-hierarchy-1.graphml │ │ ├── rbac-hierarchy-1.png │ │ ├── rbac-hierarchy-2.graphml │ │ ├── rbac-hierarchy-2.png │ │ ├── request-lifecycle.graphml │ │ ├── request-lifecycle.png │ │ ├── start-app-installed.png │ │ ├── start-country-list.png │ │ ├── start-entry-confirmation.png │ │ ├── start-form-validation.png │ │ ├── start-gii-country-grid.png │ │ ├── start-gii-country-update.png │ │ ├── start-gii-crud-preview.png │ │ ├── start-gii-crud.png │ │ ├── start-gii-model-preview.png │ │ ├── start-gii-model.png │ │ ├── start-gii.png │ │ └── start-hello-world.png │ ├── intro-upgrade-from-v1.md │ ├── intro-yii.md │ ├── runtime-bootstrapping.md │ ├── runtime-overview.md │ ├── start-databases.md │ ├── start-forms.md │ ├── start-gii.md │ ├── start-hello.md │ ├── start-installation.md │ ├── start-looking-ahead.md │ ├── start-workflow.md │ ├── structure-application-components.md │ ├── structure-applications.md │ ├── structure-assets.md │ ├── structure-controllers.md │ ├── structure-entry-scripts.md │ ├── structure-extensions.md │ ├── structure-filters.md │ ├── structure-models.md │ ├── structure-modules.md │ ├── structure-overview.md │ ├── structure-views.md │ └── structure-widgets.md ├── guide-ru │ ├── README.md │ ├── caching-data.md │ ├── caching-fragment.md │ ├── caching-http.md │ ├── caching-overview.md │ ├── caching-page.md │ ├── concept-aliases.md │ ├── concept-autoloading.md │ ├── concept-behaviors.md │ ├── concept-components.md │ ├── concept-configurations.md │ ├── concept-di-container.md │ ├── concept-events.md │ ├── concept-properties.md │ ├── concept-service-locator.md │ ├── helper-array.md │ ├── images │ │ ├── advanced-app-configs.png │ │ ├── application-structure.graphml │ │ ├── application-structure.png │ │ ├── request-lifecycle.graphml │ │ ├── request-lifecycle.png │ │ ├── start-app-installed.png │ │ ├── start-country-list.png │ │ ├── start-entry-confirmation.png │ │ ├── start-form-validation.png │ │ ├── start-gii-country-grid.png │ │ ├── start-gii-country-update.png │ │ ├── start-gii-crud-preview.png │ │ ├── start-gii-crud.png │ │ ├── start-gii-model-preview.png │ │ ├── start-gii-model.png │ │ ├── start-gii.png │ │ └── start-hello-world.png │ ├── input-validation.md │ ├── intro-upgrade-from-v1.md │ ├── intro-yii.md │ ├── output-pagination.md │ ├── output-sorting.md │ ├── rest-authentication.md │ ├── rest-controllers.md │ ├── rest-error-handling.md │ ├── rest-quick-start.md │ ├── rest-rate-limiting.md │ ├── rest-resources.md │ ├── rest-response-formatting.md │ ├── rest-routing.md │ ├── rest-versioning.md │ ├── runtime-bootstrapping.md │ ├── runtime-handling-errors.md │ ├── runtime-logging.md │ ├── runtime-requests.md │ ├── runtime-responses.md │ ├── runtime-routing.md │ ├── start-databases.md │ ├── start-forms.md │ ├── start-gii.md │ ├── start-hello.md │ ├── start-installation.md │ ├── start-looking-ahead.md │ ├── start-workflow.md │ ├── structure-application-components.md │ ├── structure-applications.md │ ├── structure-controllers.md │ ├── structure-entry-scripts.md │ ├── structure-extensions.md │ ├── structure-filters.md │ ├── structure-modules.md │ ├── structure-overview.md │ ├── structure-views.md │ ├── structure-widgets.md │ ├── tutorial-advanced-app.md │ ├── tutorial-core-validators.md │ ├── tutorial-i18n.md │ └── tutorial-yii-integration.md ├── guide-uk │ ├── README.md │ ├── caching-fragment.md │ ├── concept-aliases.md │ ├── concept-autoloading.md │ ├── images │ │ ├── application-lifecycle.graphml │ │ ├── application-lifecycle.png │ │ ├── application-structure.graphml │ │ ├── application-structure.png │ │ ├── request-lifecycle.graphml │ │ ├── request-lifecycle.png │ │ ├── start-app-installed.png │ │ ├── start-country-list.png │ │ ├── start-entry-confirmation.png │ │ ├── start-form-validation.png │ │ ├── start-gii-country-grid.png │ │ ├── start-gii-country-update.png │ │ ├── start-gii-crud-preview.png │ │ ├── start-gii-crud.png │ │ ├── start-gii-model-preview.png │ │ ├── start-gii-model.png │ │ ├── start-gii.png │ │ └── start-hello-world.png │ ├── intro-upgrade-from-v1.md │ ├── intro-yii.md │ ├── start-databases.md │ ├── start-forms.md │ ├── start-gii.md │ ├── start-hello.md │ ├── start-installation.md │ ├── start-looking-ahead.md │ ├── start-workflow.md │ ├── structure-application-components.md │ ├── structure-applications.md │ ├── structure-controllers.md │ ├── structure-entry-scripts.md │ └── structure-overview.md ├── guide-uz │ ├── README.md │ ├── intro-upgrade-from-v1.md │ └── intro-yii.md ├── guide-zh-CN │ ├── README.md │ ├── caching-data.md │ ├── caching-fragment.md │ ├── caching-http.md │ ├── caching-overview.md │ ├── caching-page.md │ ├── concept-aliases.md │ ├── concept-autoloading.md │ ├── concept-behaviors.md │ ├── concept-components.md │ ├── concept-configurations.md │ ├── concept-di-container.md │ ├── concept-events.md │ ├── concept-properties.md │ ├── concept-service-locator.md │ ├── db-active-record.md │ ├── db-dao.md │ ├── images │ │ ├── advanced-app-configs.graphml │ │ ├── advanced-app-configs.png │ │ ├── application-structure.graphml │ │ ├── application-structure.png │ │ ├── rbac-access-check-1.graphml │ │ ├── rbac-access-check-1.png │ │ ├── rbac-access-check-2.graphml │ │ ├── rbac-access-check-2.png │ │ ├── rbac-access-check-3.graphml │ │ ├── rbac-access-check-3.png │ │ ├── rbac-hierarchy-1.graphml │ │ ├── rbac-hierarchy-1.png │ │ ├── rbac-hierarchy-2.graphml │ │ ├── rbac-hierarchy-2.png │ │ ├── request-lifecycle.graphml │ │ └── request-lifecycle.png │ ├── input-validation.md │ ├── intro-upgrade-from-v1.md │ ├── intro-yii.md │ ├── output-formatter.md │ ├── rest-authentication.md │ ├── rest-controllers.md │ ├── rest-error-handling.md │ ├── rest-quick-start.md │ ├── rest-rate-limiting.md │ ├── rest-resources.md │ ├── rest-response-formatting.md │ ├── rest-routing.md │ ├── rest-versioning.md │ ├── runtime-bootstrapping.md │ ├── runtime-handling-errors.md │ ├── runtime-overview.md │ ├── runtime-responses.md │ ├── runtime-routing.md │ ├── runtime-sessions-cookies.md │ ├── start-databases.md │ ├── start-forms.md │ ├── start-gii.md │ ├── start-hello.md │ ├── start-installation.md │ ├── start-looking-ahead.md │ ├── start-workflow.md │ ├── structure-application-components.md │ ├── structure-applications.md │ ├── structure-assets.md │ ├── structure-controllers.md │ ├── structure-entry-scripts.md │ ├── structure-extensions.md │ ├── structure-filters.md │ ├── structure-models.md │ ├── structure-modules.md │ ├── structure-overview.md │ ├── structure-views.md │ ├── structure-widgets.md │ ├── tutorial-core-validators.md │ └── tutorial-yii-integration.md ├── guide │ ├── README.md │ ├── caching-data.md │ ├── caching-fragment.md │ ├── caching-http.md │ ├── caching-overview.md │ ├── caching-page.md │ ├── concept-aliases.md │ ├── concept-autoloading.md │ ├── concept-behaviors.md │ ├── concept-components.md │ ├── concept-configurations.md │ ├── concept-di-container.md │ ├── concept-events.md │ ├── concept-properties.md │ ├── concept-service-locator.md │ ├── db-active-record.md │ ├── db-dao.md │ ├── db-elasticsearch.md │ ├── db-migrations.md │ ├── db-mongodb.md │ ├── db-query-builder.md │ ├── db-redis.md │ ├── db-sphinx.md │ ├── glossary.md │ ├── helper-array.md │ ├── helper-html.md │ ├── helper-overview.md │ ├── helper-url.md │ ├── images │ │ ├── advanced-app-configs.graphml │ │ ├── advanced-app-configs.png │ │ ├── application-lifecycle.graphml │ │ ├── application-lifecycle.png │ │ ├── application-structure.graphml │ │ ├── application-structure.png │ │ ├── gii-entry.png │ │ ├── gii-preview.png │ │ ├── rbac-access-check-1.graphml │ │ ├── rbac-access-check-1.png │ │ ├── rbac-access-check-2.graphml │ │ ├── rbac-access-check-2.png │ │ ├── rbac-access-check-3.graphml │ │ ├── rbac-access-check-3.png │ │ ├── rbac-hierarchy-1.graphml │ │ ├── rbac-hierarchy-1.png │ │ ├── rbac-hierarchy-2.graphml │ │ ├── rbac-hierarchy-2.png │ │ ├── request-lifecycle.graphml │ │ ├── request-lifecycle.png │ │ ├── start-app-installed.png │ │ ├── start-country-list.png │ │ ├── start-entry-confirmation.png │ │ ├── start-form-validation.png │ │ ├── start-gii-country-grid.png │ │ ├── start-gii-country-update.png │ │ ├── start-gii-crud-preview.png │ │ ├── start-gii-crud.png │ │ ├── start-gii-model-preview.png │ │ ├── start-gii-model.png │ │ ├── start-gii.png │ │ └── start-hello-world.png │ ├── input-file-upload.md │ ├── input-forms.md │ ├── input-multiple-models.md │ ├── input-tabular-input.md │ ├── input-validation.md │ ├── intro-upgrade-from-v1.md │ ├── intro-yii.md │ ├── output-client-scripts.md │ ├── output-data-providers.md │ ├── output-data-widgets.md │ ├── output-formatter.md │ ├── output-pagination.md │ ├── output-sorting.md │ ├── output-theming.md │ ├── rest-authentication.md │ ├── rest-controllers.md │ ├── rest-error-handling.md │ ├── rest-quick-start.md │ ├── rest-rate-limiting.md │ ├── rest-resources.md │ ├── rest-response-formatting.md │ ├── rest-routing.md │ ├── rest-versioning.md │ ├── runtime-bootstrapping.md │ ├── runtime-handling-errors.md │ ├── runtime-logging.md │ ├── runtime-overview.md │ ├── runtime-requests.md │ ├── runtime-responses.md │ ├── runtime-routing.md │ ├── runtime-sessions-cookies.md │ ├── security-auth-clients.md │ ├── security-authentication.md │ ├── security-authorization.md │ ├── security-best-practices.md │ ├── security-passwords.md │ ├── start-databases.md │ ├── start-forms.md │ ├── start-gii.md │ ├── start-hello.md │ ├── start-installation.md │ ├── start-looking-ahead.md │ ├── start-workflow.md │ ├── structure-application-components.md │ ├── structure-applications.md │ ├── structure-assets.md │ ├── structure-controllers.md │ ├── structure-entry-scripts.md │ ├── structure-extensions.md │ ├── structure-filters.md │ ├── structure-models.md │ ├── structure-modules.md │ ├── structure-overview.md │ ├── structure-views.md │ ├── structure-widgets.md │ ├── test-acceptance.md │ ├── test-environment-setup.md │ ├── test-fixtures.md │ ├── test-functional.md │ ├── test-overview.md │ ├── test-unit.md │ ├── tool-api-doc.md │ ├── tool-debugger.md │ ├── tool-gii.md │ ├── tutorial-advanced-app.md │ ├── tutorial-console.md │ ├── tutorial-core-validators.md │ ├── tutorial-i18n.md │ ├── tutorial-mailing.md │ ├── tutorial-performance-tuning.md │ ├── tutorial-shared-hosting.md │ ├── tutorial-start-from-scratch.md │ ├── tutorial-template-engines.md │ ├── tutorial-yii-integration.md │ ├── widget-bootstrap.md │ └── widget-jui.md ├── internals-es │ └── translation-workflow.md ├── internals-ja │ ├── automation.md │ ├── core-code-style.md │ ├── design-decisions.md │ ├── getting-started.md │ ├── git-workflow.md │ ├── report-an-issue.md │ ├── translation-workflow.md │ ├── versions.md │ └── view-code-style.md ├── internals-pt-BR │ └── translation-workflow.md ├── internals-ru │ ├── getting-started.md │ └── translation-workflow.md ├── internals-uk │ └── versions.md ├── internals-uz │ └── translation-workflow.md └── internals │ ├── automation.md │ ├── core-code-style.md │ ├── design-decisions.md │ ├── exception_hierarchy.png │ ├── exception_hierarchy.vsd │ ├── getting-started.md │ ├── git-workflow.md │ ├── report-an-issue.md │ ├── translation-status.md │ ├── translation-teams.md │ ├── translation-workflow.md │ ├── versions.md │ └── view-code-style.md ├── extensions ├── README.md ├── apidoc │ ├── .gitignore │ ├── CHANGELOG.md │ ├── LICENSE.md │ ├── README.md │ ├── apidoc │ ├── apidoc.bat │ ├── commands │ │ ├── ApiController.php │ │ └── GuideController.php │ ├── components │ │ └── BaseController.php │ ├── composer.json │ ├── helpers │ │ ├── ApiIndexer.php │ │ ├── ApiMarkdown.php │ │ ├── ApiMarkdownLaTeX.php │ │ ├── ApiMarkdownTrait.php │ │ ├── IndexFileAnalyzer.php │ │ └── PrettyPrinter.php │ ├── models │ │ ├── BaseDoc.php │ │ ├── ClassDoc.php │ │ ├── ConstDoc.php │ │ ├── Context.php │ │ ├── EventDoc.php │ │ ├── FunctionDoc.php │ │ ├── InterfaceDoc.php │ │ ├── MethodDoc.php │ │ ├── ParamDoc.php │ │ ├── PropertyDoc.php │ │ ├── TraitDoc.php │ │ └── TypeDoc.php │ ├── renderers │ │ ├── ApiRenderer.php │ │ ├── BaseRenderer.php │ │ └── GuideRenderer.php │ └── templates │ │ ├── bootstrap │ │ ├── ApiRenderer.php │ │ ├── GuideRenderer.php │ │ ├── RendererTrait.php │ │ ├── SideNavWidget.php │ │ ├── assets │ │ │ ├── AssetBundle.php │ │ │ ├── JsSearchAsset.php │ │ │ └── css │ │ │ │ ├── api.css │ │ │ │ └── style.css │ │ ├── layouts │ │ │ ├── api.php │ │ │ ├── guide.php │ │ │ └── main.php │ │ └── views │ │ │ └── index.php │ │ ├── html │ │ ├── ApiRenderer.php │ │ ├── GuideRenderer.php │ │ ├── README.md │ │ └── views │ │ │ ├── constSummary.php │ │ │ ├── eventDetails.php │ │ │ ├── eventSummary.php │ │ │ ├── methodDetails.php │ │ │ ├── methodSummary.php │ │ │ ├── propertyDetails.php │ │ │ ├── propertySummary.php │ │ │ ├── seeAlso.php │ │ │ └── type.php │ │ ├── online │ │ ├── ApiRenderer.php │ │ ├── README.md │ │ └── views │ │ │ └── index.php │ │ └── pdf │ │ ├── GuideRenderer.php │ │ ├── Makefile │ │ └── main.tex ├── authclient │ ├── AuthAction.php │ ├── BaseClient.php │ ├── BaseOAuth.php │ ├── CHANGELOG.md │ ├── ClientInterface.php │ ├── Collection.php │ ├── InvalidResponseException.php │ ├── LICENSE.md │ ├── OAuth1.php │ ├── OAuth2.php │ ├── OAuthToken.php │ ├── OpenId.php │ ├── README.md │ ├── assets │ │ ├── authchoice.css │ │ ├── authchoice.js │ │ └── authchoice.png │ ├── clients │ │ ├── Facebook.php │ │ ├── GitHub.php │ │ ├── GoogleOAuth.php │ │ ├── GoogleOpenId.php │ │ ├── LinkedIn.php │ │ ├── Live.php │ │ ├── Twitter.php │ │ ├── VKontakte.php │ │ ├── YandexOAuth.php │ │ └── YandexOpenId.php │ ├── composer.json │ ├── signature │ │ ├── BaseMethod.php │ │ ├── HmacSha1.php │ │ ├── PlainText.php │ │ └── RsaSha1.php │ ├── views │ │ └── redirect.php │ └── widgets │ │ ├── AuthChoice.php │ │ ├── AuthChoiceAsset.php │ │ └── AuthChoiceStyleAsset.php ├── bootstrap │ ├── ActiveField.php │ ├── ActiveForm.php │ ├── Alert.php │ ├── BootstrapAsset.php │ ├── BootstrapPluginAsset.php │ ├── BootstrapThemeAsset.php │ ├── Button.php │ ├── ButtonDropdown.php │ ├── ButtonGroup.php │ ├── CHANGELOG.md │ ├── Carousel.php │ ├── Collapse.php │ ├── Dropdown.php │ ├── Modal.php │ ├── Nav.php │ ├── NavBar.php │ ├── Progress.php │ ├── README.md │ ├── Tabs.php │ ├── Widget.php │ └── composer.json ├── codeception │ ├── BasePage.php │ ├── CHANGELOG.md │ ├── DbTestCase.php │ ├── LICENSE.md │ ├── README.md │ ├── TestCase.php │ └── composer.json ├── composer │ ├── CHANGELOG.md │ ├── Installer.php │ ├── LICENSE.md │ ├── Plugin.php │ ├── README.md │ └── composer.json ├── debug │ ├── CHANGELOG.md │ ├── DebugAsset.php │ ├── LogTarget.php │ ├── Module.php │ ├── Panel.php │ ├── README.md │ ├── assets │ │ ├── bg.png │ │ ├── main.css │ │ ├── toolbar.css │ │ └── toolbar.js │ ├── components │ │ └── search │ │ │ ├── Filter.php │ │ │ └── matchers │ │ │ ├── Base.php │ │ │ ├── GreaterThan.php │ │ │ ├── LowerThan.php │ │ │ ├── MatcherInterface.php │ │ │ └── SameAs.php │ ├── composer.json │ ├── controllers │ │ └── DefaultController.php │ ├── models │ │ └── search │ │ │ ├── Base.php │ │ │ ├── Db.php │ │ │ ├── Debug.php │ │ │ ├── Log.php │ │ │ ├── Mail.php │ │ │ └── Profile.php │ ├── panels │ │ ├── AssetPanel.php │ │ ├── ConfigPanel.php │ │ ├── DbPanel.php │ │ ├── LogPanel.php │ │ ├── MailPanel.php │ │ ├── ProfilingPanel.php │ │ └── RequestPanel.php │ └── views │ │ ├── default │ │ ├── index.php │ │ ├── panels │ │ │ ├── assets │ │ │ │ ├── detail.php │ │ │ │ └── summary.php │ │ │ ├── config │ │ │ │ ├── detail.php │ │ │ │ ├── summary.php │ │ │ │ └── table.php │ │ │ ├── db │ │ │ │ ├── detail.php │ │ │ │ └── summary.php │ │ │ ├── log │ │ │ │ ├── detail.php │ │ │ │ └── summary.php │ │ │ ├── mail │ │ │ │ ├── _item.php │ │ │ │ ├── detail.php │ │ │ │ └── summary.php │ │ │ ├── profile │ │ │ │ ├── detail.php │ │ │ │ └── summary.php │ │ │ └── request │ │ │ │ ├── detail.php │ │ │ │ ├── summary.php │ │ │ │ └── table.php │ │ ├── toolbar.php │ │ └── view.php │ │ └── layouts │ │ └── main.php ├── elasticsearch │ ├── ActiveFixture.php │ ├── ActiveQuery.php │ ├── ActiveRecord.php │ ├── CHANGELOG.md │ ├── Command.php │ ├── Connection.php │ ├── DebugAction.php │ ├── DebugPanel.php │ ├── Exception.php │ ├── LICENSE.md │ ├── Query.php │ ├── QueryBuilder.php │ ├── README.md │ ├── composer.json │ └── images │ │ └── README-debug.png ├── faker │ ├── CHANGELOG.md │ ├── FixtureController.php │ ├── LICENSE.md │ ├── README.md │ └── composer.json ├── gii │ ├── CHANGELOG.md │ ├── CodeFile.php │ ├── Generator.php │ ├── GiiAsset.php │ ├── Module.php │ ├── README.md │ ├── TypeAheadAsset.php │ ├── assets │ │ ├── gii.js │ │ ├── logo.png │ │ └── main.css │ ├── components │ │ ├── ActiveField.php │ │ └── DiffRendererHtmlInline.php │ ├── composer.json │ ├── console │ │ ├── GenerateAction.php │ │ └── GenerateController.php │ ├── controllers │ │ └── DefaultController.php │ ├── generators │ │ ├── controller │ │ │ ├── Generator.php │ │ │ ├── default │ │ │ │ ├── controller.php │ │ │ │ └── view.php │ │ │ └── form.php │ │ ├── crud │ │ │ ├── Generator.php │ │ │ ├── default │ │ │ │ ├── controller.php │ │ │ │ ├── search.php │ │ │ │ └── views │ │ │ │ │ ├── _form.php │ │ │ │ │ ├── _search.php │ │ │ │ │ ├── create.php │ │ │ │ │ ├── index.php │ │ │ │ │ ├── update.php │ │ │ │ │ └── view.php │ │ │ └── form.php │ │ ├── extension │ │ │ ├── Generator.php │ │ │ ├── default │ │ │ │ ├── AutoloadExample.php │ │ │ │ ├── README.md │ │ │ │ └── composer.json │ │ │ └── form.php │ │ ├── form │ │ │ ├── Generator.php │ │ │ ├── default │ │ │ │ ├── action.php │ │ │ │ └── form.php │ │ │ └── form.php │ │ ├── model │ │ │ ├── Generator.php │ │ │ ├── default │ │ │ │ └── model.php │ │ │ └── form.php │ │ └── module │ │ │ ├── Generator.php │ │ │ ├── default │ │ │ ├── controller.php │ │ │ ├── module.php │ │ │ └── view.php │ │ │ └── form.php │ └── views │ │ ├── default │ │ ├── diff.php │ │ ├── index.php │ │ ├── view.php │ │ └── view │ │ │ ├── files.php │ │ │ └── results.php │ │ └── layouts │ │ ├── generator.php │ │ └── main.php ├── imagine │ ├── BaseImage.php │ ├── CHANGELOG.md │ ├── Image.php │ ├── LICENSE.md │ ├── README.md │ └── composer.json ├── jui │ ├── Accordion.php │ ├── AutoComplete.php │ ├── CHANGELOG.md │ ├── DatePicker.php │ ├── DatePickerLanguageAsset.php │ ├── Dialog.php │ ├── Draggable.php │ ├── Droppable.php │ ├── InputWidget.php │ ├── JuiAsset.php │ ├── LICENSE.md │ ├── Menu.php │ ├── ProgressBar.php │ ├── README.md │ ├── Resizable.php │ ├── Selectable.php │ ├── Slider.php │ ├── SliderInput.php │ ├── Sortable.php │ ├── Spinner.php │ ├── Tabs.php │ ├── Widget.php │ └── composer.json ├── mongodb │ ├── ActiveFixture.php │ ├── ActiveQuery.php │ ├── ActiveRecord.php │ ├── CHANGELOG.md │ ├── Cache.php │ ├── Collection.php │ ├── Connection.php │ ├── Database.php │ ├── Exception.php │ ├── LICENSE.md │ ├── Migration.php │ ├── Query.php │ ├── README.md │ ├── Session.php │ ├── UPGRADE.md │ ├── composer.json │ ├── console │ │ └── controllers │ │ │ └── MigrateController.php │ ├── debug │ │ └── MongoDbPanel.php │ ├── file │ │ ├── ActiveQuery.php │ │ ├── ActiveRecord.php │ │ ├── Collection.php │ │ └── Query.php │ ├── gii │ │ └── model │ │ │ ├── Generator.php │ │ │ ├── default │ │ │ └── model.php │ │ │ └── form.php │ ├── log │ │ └── MongoDbTarget.php │ └── views │ │ └── migration.php ├── redis │ ├── ActiveQuery.php │ ├── ActiveRecord.php │ ├── CHANGELOG.md │ ├── Cache.php │ ├── Connection.php │ ├── LICENSE.md │ ├── LuaScriptBuilder.php │ ├── README.md │ ├── Session.php │ └── composer.json ├── smarty │ ├── CHANGELOG.md │ ├── Extension.php │ ├── LICENSE.md │ ├── README.md │ ├── ViewRenderer.php │ └── composer.json ├── sphinx │ ├── ActiveQuery.php │ ├── ActiveRecord.php │ ├── CHANGELOG.md │ ├── ColumnSchema.php │ ├── Command.php │ ├── Connection.php │ ├── IndexSchema.php │ ├── LICENSE.md │ ├── Query.php │ ├── QueryBuilder.php │ ├── README.md │ ├── Schema.php │ ├── composer.json │ └── gii │ │ └── model │ │ ├── Generator.php │ │ ├── default │ │ └── model.php │ │ └── form.php ├── swiftmailer │ ├── CHANGELOG.md │ ├── LICENSE.md │ ├── Mailer.php │ ├── Message.php │ ├── README.md │ └── composer.json └── twig │ ├── CHANGELOG.md │ ├── Extension.php │ ├── LICENSE.md │ ├── Optimizer.php │ ├── README.md │ ├── Template.php │ ├── ViewRenderer.php │ ├── ViewRendererStaticClassProxy.php │ └── composer.json ├── framework ├── .gitignore ├── .htaccess ├── BaseYii.php ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── UPGRADE.md ├── Yii.php ├── assets │ ├── yii.activeForm.js │ ├── yii.captcha.js │ ├── yii.gridView.js │ ├── yii.js │ └── yii.validation.js ├── base │ ├── Action.php │ ├── ActionEvent.php │ ├── ActionFilter.php │ ├── Application.php │ ├── ArrayAccessTrait.php │ ├── Arrayable.php │ ├── ArrayableTrait.php │ ├── Behavior.php │ ├── BootstrapInterface.php │ ├── Component.php │ ├── Configurable.php │ ├── Controller.php │ ├── DynamicModel.php │ ├── ErrorException.php │ ├── ErrorHandler.php │ ├── Event.php │ ├── Exception.php │ ├── ExitException.php │ ├── InlineAction.php │ ├── InvalidCallException.php │ ├── InvalidConfigException.php │ ├── InvalidParamException.php │ ├── InvalidRouteException.php │ ├── InvalidValueException.php │ ├── Model.php │ ├── ModelEvent.php │ ├── Module.php │ ├── NotSupportedException.php │ ├── Object.php │ ├── Request.php │ ├── Response.php │ ├── Security.php │ ├── Theme.php │ ├── UnknownClassException.php │ ├── UnknownMethodException.php │ ├── UnknownPropertyException.php │ ├── UserException.php │ ├── View.php │ ├── ViewContextInterface.php │ ├── ViewEvent.php │ ├── ViewRenderer.php │ └── Widget.php ├── behaviors │ ├── AttributeBehavior.php │ ├── BlameableBehavior.php │ ├── SluggableBehavior.php │ └── TimestampBehavior.php ├── caching │ ├── ApcCache.php │ ├── ArrayCache.php │ ├── Cache.php │ ├── ChainedDependency.php │ ├── DbCache.php │ ├── DbDependency.php │ ├── Dependency.php │ ├── DummyCache.php │ ├── ExpressionDependency.php │ ├── FileCache.php │ ├── FileDependency.php │ ├── MemCache.php │ ├── MemCacheServer.php │ ├── TagDependency.php │ ├── WinCache.php │ ├── XCache.php │ └── ZendDataCache.php ├── captcha │ ├── Captcha.php │ ├── CaptchaAction.php │ ├── CaptchaAsset.php │ ├── CaptchaValidator.php │ ├── SpicyRice.md │ └── SpicyRice.ttf ├── classes.php ├── composer.json ├── console │ ├── Application.php │ ├── Controller.php │ ├── ErrorHandler.php │ ├── Exception.php │ ├── Markdown.php │ ├── Request.php │ ├── Response.php │ └── controllers │ │ ├── AssetController.php │ │ ├── BaseMigrateController.php │ │ ├── CacheController.php │ │ ├── FixtureController.php │ │ ├── HelpController.php │ │ ├── MessageController.php │ │ └── MigrateController.php ├── data │ ├── ActiveDataProvider.php │ ├── ArrayDataProvider.php │ ├── BaseDataProvider.php │ ├── DataProviderInterface.php │ ├── Pagination.php │ ├── Sort.php │ └── SqlDataProvider.php ├── db │ ├── ActiveQuery.php │ ├── ActiveQueryInterface.php │ ├── ActiveQueryTrait.php │ ├── ActiveRecord.php │ ├── ActiveRecordInterface.php │ ├── ActiveRelationTrait.php │ ├── AfterSaveEvent.php │ ├── BaseActiveRecord.php │ ├── BatchQueryResult.php │ ├── ColumnSchema.php │ ├── Command.php │ ├── Connection.php │ ├── DataReader.php │ ├── Exception.php │ ├── Expression.php │ ├── IntegrityException.php │ ├── Migration.php │ ├── MigrationInterface.php │ ├── Query.php │ ├── QueryBuilder.php │ ├── QueryInterface.php │ ├── QueryTrait.php │ ├── Schema.php │ ├── StaleObjectException.php │ ├── TableSchema.php │ ├── Transaction.php │ ├── cubrid │ │ ├── QueryBuilder.php │ │ └── Schema.php │ ├── mssql │ │ ├── PDO.php │ │ ├── QueryBuilder.php │ │ ├── Schema.php │ │ ├── SqlsrvPDO.php │ │ └── TableSchema.php │ ├── mysql │ │ ├── QueryBuilder.php │ │ └── Schema.php │ ├── oci │ │ ├── QueryBuilder.php │ │ └── Schema.php │ ├── pgsql │ │ ├── QueryBuilder.php │ │ └── Schema.php │ └── sqlite │ │ ├── QueryBuilder.php │ │ └── Schema.php ├── di │ ├── Container.php │ ├── Instance.php │ └── ServiceLocator.php ├── filters │ ├── AccessControl.php │ ├── AccessRule.php │ ├── ContentNegotiator.php │ ├── Cors.php │ ├── HttpCache.php │ ├── PageCache.php │ ├── RateLimitInterface.php │ ├── RateLimiter.php │ ├── VerbFilter.php │ └── auth │ │ ├── AuthInterface.php │ │ ├── AuthMethod.php │ │ ├── CompositeAuth.php │ │ ├── HttpBasicAuth.php │ │ ├── HttpBearerAuth.php │ │ └── QueryParamAuth.php ├── grid │ ├── ActionColumn.php │ ├── CheckboxColumn.php │ ├── Column.php │ ├── DataColumn.php │ ├── GridView.php │ ├── GridViewAsset.php │ └── SerialColumn.php ├── helpers │ ├── ArrayHelper.php │ ├── BaseArrayHelper.php │ ├── BaseConsole.php │ ├── BaseFileHelper.php │ ├── BaseFormatConverter.php │ ├── BaseHtml.php │ ├── BaseHtmlPurifier.php │ ├── BaseInflector.php │ ├── BaseJson.php │ ├── BaseMarkdown.php │ ├── BaseStringHelper.php │ ├── BaseUrl.php │ ├── BaseVarDumper.php │ ├── Console.php │ ├── FileHelper.php │ ├── FormatConverter.php │ ├── Html.php │ ├── HtmlPurifier.php │ ├── Inflector.php │ ├── Json.php │ ├── Markdown.php │ ├── StringHelper.php │ ├── Url.php │ ├── VarDumper.php │ └── mimeTypes.php ├── i18n │ ├── DbMessageSource.php │ ├── Formatter.php │ ├── GettextFile.php │ ├── GettextMessageSource.php │ ├── GettextMoFile.php │ ├── GettextPoFile.php │ ├── I18N.php │ ├── MessageFormatter.php │ ├── MessageSource.php │ ├── MissingTranslationEvent.php │ └── PhpMessageSource.php ├── log │ ├── DbTarget.php │ ├── Dispatcher.php │ ├── EmailTarget.php │ ├── FileTarget.php │ ├── Logger.php │ ├── SyslogTarget.php │ ├── Target.php │ └── migrations │ │ ├── m141106_185632_log_init.php │ │ ├── schema-mssql.sql │ │ ├── schema-mysql.sql │ │ ├── schema-oci.sql │ │ ├── schema-pgsql.sql │ │ └── schema-sqlite.sql ├── mail │ ├── BaseMailer.php │ ├── BaseMessage.php │ ├── MailEvent.php │ ├── MailerInterface.php │ └── MessageInterface.php ├── messages │ ├── ar │ │ └── yii.php │ ├── az │ │ └── yii.php │ ├── bg │ │ └── yii.php │ ├── ca │ │ └── yii.php │ ├── config.php │ ├── cs │ │ └── yii.php │ ├── da │ │ └── yii.php │ ├── de │ │ └── yii.php │ ├── el │ │ └── yii.php │ ├── es │ │ └── yii.php │ ├── et │ │ └── yii.php │ ├── fa │ │ └── yii.php │ ├── fi │ │ └── yii.php │ ├── fr │ │ └── yii.php │ ├── he │ │ └── yii.php │ ├── hu │ │ └── yii.php │ ├── id │ │ └── yii.php │ ├── it │ │ └── yii.php │ ├── ja │ │ └── yii.php │ ├── kk │ │ └── yii.php │ ├── ko │ │ └── yii.php │ ├── lt │ │ └── yii.php │ ├── lv │ │ └── yii.php │ ├── ms │ │ └── yii.php │ ├── nl │ │ └── yii.php │ ├── pl │ │ └── yii.php │ ├── pt-BR │ │ └── yii.php │ ├── pt │ │ └── yii.php │ ├── ro │ │ └── yii.php │ ├── ru │ │ └── yii.php │ ├── sk │ │ └── yii.php │ ├── sl │ │ └── yii.php │ ├── sr-Latn │ │ └── yii.php │ ├── sr │ │ └── yii.php │ ├── sv │ │ └── yii.php │ ├── th │ │ └── yii.php │ ├── tj │ │ └── yii.php │ ├── tr │ │ └── yii.php │ ├── uk │ │ └── yii.php │ ├── vi │ │ └── yii.php │ ├── zh-CN │ │ └── yii.php │ └── zh-TW │ │ └── yii.php ├── mutex │ ├── DbMutex.php │ ├── FileMutex.php │ ├── Mutex.php │ └── MysqlMutex.php ├── rbac │ ├── Assignment.php │ ├── BaseManager.php │ ├── DbManager.php │ ├── Item.php │ ├── ManagerInterface.php │ ├── Permission.php │ ├── PhpManager.php │ ├── Role.php │ ├── Rule.php │ └── migrations │ │ ├── m140506_102106_rbac_init.php │ │ ├── schema-mssql.sql │ │ ├── schema-mysql.sql │ │ ├── schema-oci.sql │ │ ├── schema-pgsql.sql │ │ └── schema-sqlite.sql ├── requirements │ ├── YiiRequirementChecker.php │ ├── requirements.php │ └── views │ │ ├── console │ │ └── index.php │ │ └── web │ │ ├── css.php │ │ └── index.php ├── rest │ ├── Action.php │ ├── ActiveController.php │ ├── Controller.php │ ├── CreateAction.php │ ├── DeleteAction.php │ ├── IndexAction.php │ ├── OptionsAction.php │ ├── Serializer.php │ ├── UpdateAction.php │ ├── UrlRule.php │ └── ViewAction.php ├── test │ ├── ActiveFixture.php │ ├── ArrayFixture.php │ ├── BaseActiveFixture.php │ ├── DbFixture.php │ ├── Fixture.php │ ├── FixtureTrait.php │ └── InitDbFixture.php ├── validators │ ├── BooleanValidator.php │ ├── CompareValidator.php │ ├── DateValidator.php │ ├── DefaultValueValidator.php │ ├── EmailValidator.php │ ├── ExistValidator.php │ ├── FileValidator.php │ ├── FilterValidator.php │ ├── ImageValidator.php │ ├── InlineValidator.php │ ├── NumberValidator.php │ ├── PunycodeAsset.php │ ├── RangeValidator.php │ ├── RegularExpressionValidator.php │ ├── RequiredValidator.php │ ├── SafeValidator.php │ ├── StringValidator.php │ ├── UniqueValidator.php │ ├── UrlValidator.php │ ├── ValidationAsset.php │ └── Validator.php ├── views │ ├── errorHandler │ │ ├── callStackItem.php │ │ ├── error.php │ │ ├── exception.php │ │ └── previousException.php │ ├── messageConfig.php │ └── migration.php ├── web │ ├── Application.php │ ├── AssetBundle.php │ ├── AssetConverter.php │ ├── AssetConverterInterface.php │ ├── AssetManager.php │ ├── BadRequestHttpException.php │ ├── CacheSession.php │ ├── CompositeUrlRule.php │ ├── ConflictHttpException.php │ ├── Controller.php │ ├── Cookie.php │ ├── CookieCollection.php │ ├── DbSession.php │ ├── ErrorAction.php │ ├── ErrorHandler.php │ ├── ForbiddenHttpException.php │ ├── GoneHttpException.php │ ├── GroupUrlRule.php │ ├── HeaderCollection.php │ ├── HtmlResponseFormatter.php │ ├── HttpException.php │ ├── IdentityInterface.php │ ├── JqueryAsset.php │ ├── JsExpression.php │ ├── JsonParser.php │ ├── JsonResponseFormatter.php │ ├── Link.php │ ├── Linkable.php │ ├── MethodNotAllowedHttpException.php │ ├── NotAcceptableHttpException.php │ ├── NotFoundHttpException.php │ ├── Request.php │ ├── RequestParserInterface.php │ ├── Response.php │ ├── ResponseFormatterInterface.php │ ├── ServerErrorHttpException.php │ ├── Session.php │ ├── SessionIterator.php │ ├── TooManyRequestsHttpException.php │ ├── UnauthorizedHttpException.php │ ├── UnsupportedMediaTypeHttpException.php │ ├── UploadedFile.php │ ├── UrlManager.php │ ├── UrlRule.php │ ├── UrlRuleInterface.php │ ├── User.php │ ├── UserEvent.php │ ├── View.php │ ├── ViewAction.php │ ├── XmlResponseFormatter.php │ └── YiiAsset.php ├── widgets │ ├── ActiveField.php │ ├── ActiveForm.php │ ├── ActiveFormAsset.php │ ├── BaseListView.php │ ├── Block.php │ ├── Breadcrumbs.php │ ├── ContentDecorator.php │ ├── DetailView.php │ ├── FragmentCache.php │ ├── InputWidget.php │ ├── LinkPager.php │ ├── LinkSorter.php │ ├── ListView.php │ ├── MaskedInput.php │ ├── MaskedInputAsset.php │ ├── Menu.php │ ├── Pjax.php │ ├── PjaxAsset.php │ └── Spaceless.php ├── yii └── yii.bat ├── phpunit.xml.dist └── tests ├── README.md ├── unit ├── .gitignore ├── TestCase.php ├── VendorTestCase.php ├── assets │ └── .gitignore ├── bootstrap.php ├── data │ ├── ar │ │ ├── ActiveRecord.php │ │ ├── Animal.php │ │ ├── Cat.php │ │ ├── Category.php │ │ ├── Customer.php │ │ ├── CustomerQuery.php │ │ ├── Dog.php │ │ ├── Item.php │ │ ├── NullValues.php │ │ ├── Order.php │ │ ├── OrderItem.php │ │ ├── OrderItemWithNullFK.php │ │ ├── OrderWithNullFK.php │ │ ├── Profile.php │ │ ├── Type.php │ │ ├── elasticsearch │ │ │ ├── ActiveRecord.php │ │ │ ├── Animal.php │ │ │ ├── Cat.php │ │ │ ├── Customer.php │ │ │ ├── CustomerQuery.php │ │ │ ├── Dog.php │ │ │ ├── Item.php │ │ │ ├── Order.php │ │ │ ├── OrderItem.php │ │ │ ├── OrderItemWithNullFK.php │ │ │ └── OrderWithNullFK.php │ │ ├── mongodb │ │ │ ├── ActiveRecord.php │ │ │ ├── Animal.php │ │ │ ├── Cat.php │ │ │ ├── Customer.php │ │ │ ├── CustomerOrder.php │ │ │ ├── CustomerQuery.php │ │ │ ├── Dog.php │ │ │ ├── Item.php │ │ │ └── file │ │ │ │ ├── ActiveRecord.php │ │ │ │ ├── CustomerFile.php │ │ │ │ └── CustomerFileQuery.php │ │ ├── redis │ │ │ ├── ActiveRecord.php │ │ │ ├── Customer.php │ │ │ ├── CustomerQuery.php │ │ │ ├── Item.php │ │ │ ├── Order.php │ │ │ ├── OrderItem.php │ │ │ ├── OrderItemWithNullFK.php │ │ │ └── OrderWithNullFK.php │ │ └── sphinx │ │ │ ├── ActiveRecord.php │ │ │ ├── ArticleDb.php │ │ │ ├── ArticleIndex.php │ │ │ ├── ArticleIndexQuery.php │ │ │ ├── ItemDb.php │ │ │ ├── ItemIndex.php │ │ │ ├── RuntimeIndex.php │ │ │ └── TagDb.php │ ├── base │ │ ├── InvalidRulesModel.php │ │ ├── Singer.php │ │ └── Speaker.php │ ├── config.php │ ├── console │ │ └── controllers │ │ │ └── fixtures │ │ │ ├── FirstFixture.php │ │ │ ├── FixtureStorage.php │ │ │ ├── GlobalFixture.php │ │ │ └── SecondFixture.php │ ├── cubrid.sql │ ├── extensions │ │ └── faker │ │ │ ├── providers │ │ │ └── Book.php │ │ │ └── templates │ │ │ ├── book.php │ │ │ ├── profile.php │ │ │ └── user.php │ ├── i18n │ │ ├── messages │ │ │ ├── de-DE │ │ │ │ └── test.php │ │ │ ├── de │ │ │ │ └── test.php │ │ │ ├── en-US │ │ │ │ └── test.php │ │ │ └── ru │ │ │ │ └── test.php │ │ ├── test.mo │ │ └── test.po │ ├── imagine │ │ ├── GothamRnd-Light.otf │ │ ├── large.jpg │ │ └── xparent.gif │ ├── mssql.sql │ ├── mysql.sql │ ├── postgres.sql │ ├── sphinx │ │ ├── source.sql │ │ └── sphinx.conf │ ├── sqlite.sql │ ├── travis │ │ ├── README.md │ │ ├── apc-setup.sh │ │ ├── cubrid-setup.sh │ │ ├── cubrid-solo.rb │ │ ├── init-apps.sh │ │ ├── memcache-setup.sh │ │ ├── mongodb-setup.sh │ │ ├── setup-apps.sh │ │ └── sphinx-setup.sh │ ├── validators │ │ ├── TestValidator.php │ │ └── models │ │ │ ├── FakedValidationModel.php │ │ │ ├── ValidatorTestMainModel.php │ │ │ └── ValidatorTestRefModel.php │ ├── views │ │ ├── layout.php │ │ ├── rawlayout.php │ │ └── simple.php │ └── web │ │ ├── assets │ │ └── .gitignore │ │ └── data.txt ├── extensions │ ├── authclient │ │ ├── AuthActionTest.php │ │ ├── BaseClientTest.php │ │ ├── BaseOAuthTest.php │ │ ├── CollectionTest.php │ │ ├── OAuth1Test.php │ │ ├── OAuth2Test.php │ │ ├── OpenIdTest.php │ │ ├── TestCase.php │ │ ├── TokenTest.php │ │ └── signature │ │ │ ├── BaseMethodTest.php │ │ │ ├── HmacSha1Test.php │ │ │ ├── PlainTextTest.php │ │ │ └── RsaSha1Test.php │ ├── bootstrap │ │ ├── BootstrapTestCase.php │ │ ├── ButtonDropdownTest.php │ │ ├── CollapseTest.php │ │ ├── DropdownTest.php │ │ ├── NavTest.php │ │ └── TabsTest.php │ ├── elasticsearch │ │ ├── ActiveRecordTest.php │ │ ├── ElasticSearchConnectionTest.php │ │ ├── ElasticSearchTestCase.php │ │ ├── QueryBuilderTest.php │ │ └── QueryTest.php │ ├── faker │ │ └── FixtureControllerTest.php │ ├── gii │ │ ├── GeneratorsTest.php │ │ ├── GiiTestCase.php │ │ └── Profile.php │ ├── imagine │ │ ├── AbstractImageTest.php │ │ ├── ImageGdTest.php │ │ ├── ImageGmagickTest.php │ │ └── ImageImagickTest.php │ ├── mongodb │ │ ├── ActiveDataProviderTest.php │ │ ├── ActiveRecordTest.php │ │ ├── ActiveRelationTest.php │ │ ├── CacheTest.php │ │ ├── CollectionTest.php │ │ ├── ConnectionTest.php │ │ ├── DatabaseTest.php │ │ ├── MongoDbTestCase.php │ │ ├── QueryRunTest.php │ │ ├── QueryTest.php │ │ ├── SessionTest.php │ │ ├── console │ │ │ └── controllers │ │ │ │ ├── EchoMigrateController.php │ │ │ │ └── MigrateControllerTest.php │ │ └── file │ │ │ ├── ActiveRecordTest.php │ │ │ ├── ActiveRelationTest.php │ │ │ ├── CollectionTest.php │ │ │ └── QueryTest.php │ ├── redis │ │ ├── ActiveRecordTest.php │ │ ├── RedisCacheTest.php │ │ ├── RedisConnectionTest.php │ │ └── RedisTestCase.php │ ├── smarty │ │ ├── ViewRendererTest.php │ │ └── views │ │ │ ├── changeTitle.tpl │ │ │ ├── extends1.tpl │ │ │ ├── extends2.tpl │ │ │ ├── extends3.tpl │ │ │ ├── form.tpl │ │ │ ├── layout.tpl │ │ │ ├── simple.tpl │ │ │ ├── use.tpl │ │ │ └── view.tpl │ ├── sphinx │ │ ├── ActiveDataProviderTest.php │ │ ├── ActiveRecordTest.php │ │ ├── ActiveRelationTest.php │ │ ├── ColumnSchemaTest.php │ │ ├── CommandTest.php │ │ ├── ConnectionTest.php │ │ ├── ExternalActiveRelationTest.php │ │ ├── QueryTest.php │ │ ├── SchemaTest.php │ │ └── SphinxTestCase.php │ ├── swiftmailer │ │ ├── MailerTest.php │ │ └── MessageTest.php │ └── twig │ │ ├── ViewRendererTest.php │ │ └── views │ │ ├── calls.twig │ │ ├── changeTitle.twig │ │ ├── comments.twig │ │ ├── extends1.twig │ │ ├── extends2.twig │ │ ├── extends3.twig │ │ ├── form.twig │ │ ├── layout.twig │ │ └── nulls.twig ├── framework │ ├── BaseYiiTest.php │ ├── ar │ │ └── ActiveRecordTestTrait.php │ ├── base │ │ ├── ActionFilterTest.php │ │ ├── BehaviorTest.php │ │ ├── ComponentTest.php │ │ ├── DynamicModelTest.php │ │ ├── EventTest.php │ │ ├── ExposedSecurity.php │ │ ├── ModelTest.php │ │ ├── ObjectTest.php │ │ └── SecurityTest.php │ ├── behaviors │ │ ├── SluggableBehaviorTest.php │ │ └── TimestampBehaviorTest.php │ ├── caching │ │ ├── ApcCacheTest.php │ │ ├── ArrayCacheTest.php │ │ ├── CacheTestCase.php │ │ ├── DbCacheTest.php │ │ ├── FileCacheTest.php │ │ ├── MemCacheTest.php │ │ ├── MemCachedTest.php │ │ ├── TagDependencyTest.php │ │ ├── WinCacheTest.php │ │ ├── XCacheTest.php │ │ └── ZendDataCacheTest.php │ ├── console │ │ └── controllers │ │ │ ├── AssetControllerTest.php │ │ │ ├── BaseMessageControllerTest.php │ │ │ ├── CacheControllerTest.php │ │ │ ├── EchoMigrateController.php │ │ │ ├── FixtureControllerTest.php │ │ │ ├── MigrateControllerTest.php │ │ │ ├── MigrateControllerTestTrait.php │ │ │ ├── PHPMessageControllerTest.php │ │ │ ├── POMessageControllerTest.php │ │ │ ├── SilencedCacheController.php │ │ │ └── StdOutBufferControllerTrait.php │ ├── data │ │ ├── ActiveDataProviderTest.php │ │ └── SortTest.php │ ├── db │ │ ├── ActiveRecordTest.php │ │ ├── BatchQueryResultTest.php │ │ ├── CommandTest.php │ │ ├── ConnectionTest.php │ │ ├── DatabaseTestCase.php │ │ ├── QueryBuilderTest.php │ │ ├── QueryTest.php │ │ ├── SchemaTest.php │ │ ├── cubrid │ │ │ ├── CubridActiveDataProviderTest.php │ │ │ ├── CubridActiveRecordTest.php │ │ │ ├── CubridCommandTest.php │ │ │ ├── CubridConnectionTest.php │ │ │ ├── CubridQueryBuilderTest.php │ │ │ ├── CubridQueryTest.php │ │ │ └── CubridSchemaTest.php │ │ ├── mssql │ │ │ ├── MssqlActiveDataProviderTest.php │ │ │ ├── MssqlActiveRecordTest.php │ │ │ ├── MssqlCommandTest.php │ │ │ ├── MssqlConnectionTest.php │ │ │ ├── MssqlQueryBuilderTest.php │ │ │ └── MssqlQueryTest.php │ │ ├── pgsql │ │ │ ├── PostgreSQLActiveDataProviderTest.php │ │ │ ├── PostgreSQLActiveRecordTest.php │ │ │ ├── PostgreSQLCommandTest.php │ │ │ ├── PostgreSQLConnectionTest.php │ │ │ ├── PostgreSQLQueryBuilderTest.php │ │ │ ├── PostgreSQLQueryTest.php │ │ │ └── PostgreSQLSchemaTest.php │ │ └── sqlite │ │ │ ├── SqliteActiveDataProviderTest.php │ │ │ ├── SqliteActiveRecordTest.php │ │ │ ├── SqliteCommandTest.php │ │ │ ├── SqliteConnectionTest.php │ │ │ ├── SqliteQueryBuilderTest.php │ │ │ ├── SqliteQueryTest.php │ │ │ └── SqliteSchemaTest.php │ ├── di │ │ ├── ContainerTest.php │ │ ├── InstanceTest.php │ │ ├── ServiceLocatorTest.php │ │ └── stubs │ │ │ ├── Bar.php │ │ │ ├── Foo.php │ │ │ ├── Qux.php │ │ │ └── QuxInterface.php │ ├── filters │ │ └── HttpCacheTest.php │ ├── helpers │ │ ├── ArrayHelperTest.php │ │ ├── ConsoleTest.php │ │ ├── FallbackInflector.php │ │ ├── FileHelperTest.php │ │ ├── FormatConverterTest.php │ │ ├── HtmlTest.php │ │ ├── InflectorTest.php │ │ ├── JsonTest.php │ │ ├── StringHelperTest.php │ │ ├── UrlTest.php │ │ └── VarDumperTest.php │ ├── i18n │ │ ├── FallbackMessageFormatterTest.php │ │ ├── FormatterDateTest.php │ │ ├── FormatterNumberTest.php │ │ ├── FormatterTest.php │ │ ├── GettextMessageSourceTest.php │ │ ├── GettextMoFileTest.php │ │ ├── GettextPoFileTest.php │ │ ├── I18NTest.php │ │ ├── IntlTestHelper.php │ │ └── MessageFormatterTest.php │ ├── log │ │ ├── DbTargetTest.php │ │ ├── FileTargetTest.php │ │ ├── LoggerTest.php │ │ ├── MySQLTargetTest.php │ │ ├── PgSQLTargetTest.php │ │ ├── SqliteTargetTest.php │ │ └── TargetTest.php │ ├── mail │ │ ├── BaseMailerTest.php │ │ └── BaseMessageTest.php │ ├── rbac │ │ ├── AuthorRule.php │ │ ├── DbManagerTestCase.php │ │ ├── ExposedPhpManager.php │ │ ├── ManagerTestCase.php │ │ ├── MySQLManagerCacheTest.php │ │ ├── MySQLManagerTest.php │ │ ├── PgSQLManagerTest.php │ │ ├── PhpManagerTest.php │ │ └── SqliteManagerTest.php │ ├── requirements │ │ └── YiiRequirementCheckerTest.php │ ├── test │ │ ├── ActiveFixtureTest.php │ │ ├── ArrayFixtureTest.php │ │ ├── FixtureTest.php │ │ └── data │ │ │ ├── array_fixture.php │ │ │ └── customer.php │ ├── validators │ │ ├── BooleanValidatorTest.php │ │ ├── CompareValidatorTest.php │ │ ├── DateValidatorTest.php │ │ ├── DefaultValueValidatorTest.php │ │ ├── EmailValidatorTest.php │ │ ├── ExistValidatorDriverTests │ │ │ ├── ExistValidatorPostgresTest.php │ │ │ └── ExistValidatorSQliteTest.php │ │ ├── ExistValidatorTest.php │ │ ├── FileValidatorTest.php │ │ ├── FilterValidatorTest.php │ │ ├── NumberValidatorTest.php │ │ ├── RangeValidatorTest.php │ │ ├── RegularExpressionValidatorTest.php │ │ ├── RequiredValidatorTest.php │ │ ├── StringValidatorTest.php │ │ ├── UniqueValidatorDriverTests │ │ │ ├── UniqueValidatorPostgresTest.php │ │ │ └── UniqueValidatorSQliteTest.php │ │ ├── UniqueValidatorTest.php │ │ ├── UrlValidatorTest.php │ │ └── ValidatorTest.php │ ├── web │ │ ├── AssetBundleTest.php │ │ ├── AssetConverterTest.php │ │ ├── CacheSessionTest.php │ │ ├── FormatterTest.php │ │ ├── GroupUrlRuleTest.php │ │ ├── JsonResponseFormatterTest.php │ │ ├── Post.php │ │ ├── RequestTest.php │ │ ├── ResponseTest.php │ │ ├── UrlManagerTest.php │ │ ├── UrlRuleTest.php │ │ ├── UserTest.php │ │ └── XmlResponseFormatterTest.php │ └── widgets │ │ ├── ActiveFieldTest.php │ │ ├── ActiveFormTest.php │ │ ├── BreadcrumbsTest.php │ │ ├── MenuTest.php │ │ └── SpacelessTest.php └── runtime │ └── .gitignore └── web └── app ├── index.php └── protected ├── config └── main.php ├── controllers └── SiteController.php └── views └── site └── index.php /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig helps developers define and maintain consistent 2 | # coding styles between different editors and IDEs 3 | # editorconfig.org 4 | 5 | root = true 6 | 7 | 8 | [*] 9 | 10 | # Change these settings to your own preference 11 | indent_style = space 12 | indent_size = 2 13 | 14 | # We recommend you to keep these unchanged 15 | end_of_line = lf 16 | charset = utf-8 17 | trim_trailing_whitespace = true 18 | insert_final_newline = true 19 | 20 | [*.php] 21 | indent_style = space 22 | indent_size = 4 23 | 24 | [*.md] 25 | trim_trailing_whitespace = false 26 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Contributing to Yii2 2 | ==================== 3 | 4 | - [Report an issue](docs/internals/report-an-issue.md) 5 | - [Translate documentation or messages](docs/internals/translation-workflow.md) 6 | - [Contribute to the core code or fix bugs](docs/internals/getting-started.md) 7 | -------------------------------------------------------------------------------- /apps/advanced/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory" : "vendor/bower" 3 | } 4 | -------------------------------------------------------------------------------- /apps/advanced/.gitignore: -------------------------------------------------------------------------------- 1 | # yii console command 2 | /yii 3 | 4 | # phpstorm project files 5 | .idea 6 | 7 | # netbeans project files 8 | nbproject 9 | 10 | # zend studio for eclipse project files 11 | .buildpath 12 | .project 13 | .settings 14 | 15 | # windows thumbnail cache 16 | Thumbs.db 17 | 18 | # composer vendor dir 19 | /vendor 20 | 21 | # composer itself is not needed 22 | composer.phar 23 | 24 | # Mac DS_Store Files 25 | .DS_Store 26 | 27 | # phpunit itself is not needed 28 | phpunit.phar 29 | # local phpunit config 30 | /phpunit.xml 31 | -------------------------------------------------------------------------------- /apps/advanced/backend/config/.gitignore: -------------------------------------------------------------------------------- 1 | main-local.php 2 | params-local.php -------------------------------------------------------------------------------- /apps/advanced/backend/config/bootstrap.php: -------------------------------------------------------------------------------- 1 | 'admin@example.com', 4 | ]; 5 | -------------------------------------------------------------------------------- /apps/advanced/backend/models/.gitkeep: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /apps/advanced/backend/runtime/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /apps/advanced/backend/views/site/error.php: -------------------------------------------------------------------------------- 1 | title = $name; 11 | ?> 12 |
13 | 14 |

title) ?>

15 | 16 |
17 | 18 |
19 | 20 |

21 | The above error occurred while the Web server was processing your request. 22 |

23 |

24 | Please contact us if you think this is a server error. Thank you. 25 |

26 | 27 |
28 | -------------------------------------------------------------------------------- /apps/advanced/backend/web/.gitignore: -------------------------------------------------------------------------------- 1 | /index.php 2 | /index-test.php 3 | -------------------------------------------------------------------------------- /apps/advanced/backend/web/assets/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /apps/advanced/backend/web/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/apps/advanced/backend/web/favicon.ico -------------------------------------------------------------------------------- /apps/advanced/backend/web/robots.txt: -------------------------------------------------------------------------------- 1 | User-Agent: * 2 | Disallow: / 3 | -------------------------------------------------------------------------------- /apps/advanced/common/config/.gitignore: -------------------------------------------------------------------------------- 1 | main-local.php 2 | params-local.php 3 | -------------------------------------------------------------------------------- /apps/advanced/common/config/bootstrap.php: -------------------------------------------------------------------------------- 1 | dirname(dirname(__DIR__)) . '/vendor', 4 | 'components' => [ 5 | 'cache' => [ 6 | 'class' => 'yii\caching\FileCache', 7 | ], 8 | ], 9 | ]; 10 | -------------------------------------------------------------------------------- /apps/advanced/common/config/params.php: -------------------------------------------------------------------------------- 1 | 'admin@example.com', 4 | 'supportEmail' => 'support@example.com', 5 | 'user.passwordResetTokenExpire' => 3600, 6 | ]; 7 | -------------------------------------------------------------------------------- /apps/advanced/common/mail/layouts/text.php: -------------------------------------------------------------------------------- 1 | 8 | beginPage() ?> 9 | beginBody() ?> 10 | 11 | endBody() ?> 12 | endPage() ?> 13 | -------------------------------------------------------------------------------- /apps/advanced/common/mail/passwordResetToken-html.php: -------------------------------------------------------------------------------- 1 | urlManager->createAbsoluteUrl(['site/reset-password', 'token' => $user->password_reset_token]); 8 | ?> 9 |
10 |

Hello username) ?>,

11 | 12 |

Follow the link below to reset your password:

13 | 14 |

15 |
16 | -------------------------------------------------------------------------------- /apps/advanced/common/mail/passwordResetToken-text.php: -------------------------------------------------------------------------------- 1 | urlManager->createAbsoluteUrl(['site/reset-password', 'token' => $user->password_reset_token]); 7 | ?> 8 | Hello username ?>, 9 | 10 | Follow the link below to reset your password: 11 | 12 | 13 | -------------------------------------------------------------------------------- /apps/advanced/console/config/.gitignore: -------------------------------------------------------------------------------- 1 | main-local.php 2 | params-local.php -------------------------------------------------------------------------------- /apps/advanced/console/config/bootstrap.php: -------------------------------------------------------------------------------- 1 | 'admin@example.com', 4 | ]; 5 | -------------------------------------------------------------------------------- /apps/advanced/console/controllers/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/apps/advanced/console/controllers/.gitkeep -------------------------------------------------------------------------------- /apps/advanced/console/models/.gitkeep: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /apps/advanced/console/runtime/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /apps/advanced/environments/dev/backend/config/main-local.php: -------------------------------------------------------------------------------- 1 | [ 5 | 'request' => [ 6 | // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 7 | 'cookieValidationKey' => '', 8 | ], 9 | ], 10 | ]; 11 | 12 | if (!YII_ENV_TEST) { 13 | // configuration adjustments for 'dev' environment 14 | $config['bootstrap'][] = 'debug'; 15 | $config['modules']['debug'] = 'yii\debug\Module'; 16 | 17 | $config['bootstrap'][] = 'gii'; 18 | $config['modules']['gii'] = 'yii\gii\Module'; 19 | } 20 | 21 | return $config; 22 | -------------------------------------------------------------------------------- /apps/advanced/environments/dev/backend/config/params-local.php: -------------------------------------------------------------------------------- 1 | ['gii'], 4 | 'modules' => [ 5 | 'gii' => 'yii\gii\Module', 6 | ], 7 | ]; 8 | -------------------------------------------------------------------------------- /apps/advanced/environments/dev/console/config/params-local.php: -------------------------------------------------------------------------------- 1 | [ 5 | 'request' => [ 6 | // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 7 | 'cookieValidationKey' => '', 8 | ], 9 | ], 10 | ]; 11 | 12 | if (!YII_ENV_TEST) { 13 | // configuration adjustments for 'dev' environment 14 | $config['bootstrap'][] = 'debug'; 15 | $config['modules']['debug'] = 'yii\debug\Module'; 16 | 17 | $config['bootstrap'][] = 'gii'; 18 | $config['modules']['gii'] = 'yii\gii\Module'; 19 | } 20 | 21 | return $config; 22 | -------------------------------------------------------------------------------- /apps/advanced/environments/dev/frontend/config/params-local.php: -------------------------------------------------------------------------------- 1 | [ 4 | 'request' => [ 5 | // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 6 | 'cookieValidationKey' => '', 7 | ], 8 | ], 9 | ]; 10 | -------------------------------------------------------------------------------- /apps/advanced/environments/prod/backend/config/params-local.php: -------------------------------------------------------------------------------- 1 | [ 4 | 'db' => [ 5 | 'class' => 'yii\db\Connection', 6 | 'dsn' => 'mysql:host=localhost;dbname=yii2advanced', 7 | 'username' => 'root', 8 | 'password' => '', 9 | 'charset' => 'utf8', 10 | ], 11 | 'mailer' => [ 12 | 'class' => 'yii\swiftmailer\Mailer', 13 | 'viewPath' => '@common/mail', 14 | ], 15 | ], 16 | ]; 17 | -------------------------------------------------------------------------------- /apps/advanced/environments/prod/common/config/params-local.php: -------------------------------------------------------------------------------- 1 | [ 4 | 'request' => [ 5 | // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 6 | 'cookieValidationKey' => '', 7 | ], 8 | ], 9 | ]; 10 | -------------------------------------------------------------------------------- /apps/advanced/environments/prod/frontend/config/params-local.php: -------------------------------------------------------------------------------- 1 | 'admin@example.com', 4 | ]; 5 | -------------------------------------------------------------------------------- /apps/advanced/frontend/runtime/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /apps/advanced/frontend/views/site/about.php: -------------------------------------------------------------------------------- 1 | title = 'About'; 6 | $this->params['breadcrumbs'][] = $this->title; 7 | ?> 8 |
9 |

title) ?>

10 | 11 |

This is the About page. You may modify the following file to customize its content:

12 | 13 | 14 |
15 | -------------------------------------------------------------------------------- /apps/advanced/frontend/views/site/error.php: -------------------------------------------------------------------------------- 1 | title = $name; 11 | ?> 12 |
13 | 14 |

title) ?>

15 | 16 |
17 | 18 |
19 | 20 |

21 | The above error occurred while the Web server was processing your request. 22 |

23 |

24 | Please contact us if you think this is a server error. Thank you. 25 |

26 | 27 |
28 | -------------------------------------------------------------------------------- /apps/advanced/frontend/web/.gitignore: -------------------------------------------------------------------------------- 1 | /index.php 2 | /index-test.php 3 | -------------------------------------------------------------------------------- /apps/advanced/frontend/web/assets/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /apps/advanced/frontend/web/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/apps/advanced/frontend/web/favicon.ico -------------------------------------------------------------------------------- /apps/advanced/frontend/web/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: -------------------------------------------------------------------------------- /apps/advanced/init.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | rem ------------------------------------------------------------- 4 | rem Yii command line init script for Windows. 5 | rem 6 | rem @author Qiang Xue 7 | rem @link http://www.yiiframework.com/ 8 | rem @copyright Copyright (c) 2008 Yii Software LLC 9 | rem @license http://www.yiiframework.com/license/ 10 | rem ------------------------------------------------------------- 11 | 12 | @setlocal 13 | 14 | set YII_PATH=%~dp0 15 | 16 | if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe 17 | 18 | "%PHP_COMMAND%" "%YII_PATH%init" %* 19 | 20 | @endlocal 21 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception.yml: -------------------------------------------------------------------------------- 1 | include: 2 | - codeception/common 3 | - codeception/console 4 | - codeception/backend 5 | - codeception/frontend 6 | 7 | paths: 8 | log: codeception/_output 9 | 10 | settings: 11 | colors: true 12 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/_output/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/backend/.gitignore: -------------------------------------------------------------------------------- 1 | # these files are auto generated by codeception build 2 | /unit/UnitTester.php 3 | /functional/FunctionalTester.php 4 | /acceptance/AcceptanceTester.php 5 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/backend/_output/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/backend/acceptance/_bootstrap.php: -------------------------------------------------------------------------------- 1 | 7 | rem @link http://www.yiiframework.com/ 8 | rem @copyright Copyright (c) 2008 Yii Software LLC 9 | rem @license http://www.yiiframework.com/license/ 10 | rem ------------------------------------------------------------- 11 | 12 | @setlocal 13 | 14 | set YII_PATH=%~dp0 15 | 16 | if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe 17 | 18 | "%PHP_COMMAND%" "%YII_PATH%yii" %* 19 | 20 | @endlocal 21 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/common/.gitignore: -------------------------------------------------------------------------------- 1 | # these files are auto generated by codeception build 2 | /unit/UnitTester.php 3 | /functional/FunctionalTester.php 4 | /acceptance/AcceptanceTester.php 5 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/common/_bootstrap.php: -------------------------------------------------------------------------------- 1 | 'erau', 6 | 'auth_key' => 'tUu1qHcde0diwUol3xeI-18MuHkkprQI', 7 | // password_0 8 | 'password_hash' => '$2y$13$nJ1WDlBaGcbCdbNC5.5l4.sgy.OMEKCqtDQOdQ2OWpgiKRWYyzzne', 9 | 'password_reset_token' => 'RkD_Jw0_8HEedzLk7MM-ZKEFfYR7VbMr_1392559490', 10 | 'created_at' => '1392559490', 11 | 'updated_at' => '1392559490', 12 | 'email' => 'sfriesen@jenkins.info', 13 | ], 14 | ]; 15 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/common/templates/fixtures/user.php: -------------------------------------------------------------------------------- 1 | getSecurity(); 8 | 9 | return [ 10 | 'username' => $faker->userName, 11 | 'email' => $faker->email, 12 | 'auth_key' => $security->generateRandomString(), 13 | 'password_hash' => $security->generatePasswordHash('password_' . $index), 14 | 'password_reset_token' => $security->generateRandomString() . '_' . time(), 15 | 'created_at' => time(), 16 | 'updated_at' => time(), 17 | ]; 18 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/common/unit.suite.yml: -------------------------------------------------------------------------------- 1 | # Codeception Test Suite Configuration 2 | 3 | # suite for unit (internal) tests. 4 | # RUN `build` COMMAND AFTER ADDING/REMOVING MODULES. 5 | 6 | class_name: UnitTester 7 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/common/unit/DbTestCase.php: -------------------------------------------------------------------------------- 1 | 'bayer.hudson', 6 | 'auth_key' => 'HP187Mvq7Mmm3CTU80dLkGmni_FUH_lR', 7 | //password_0 8 | 'password_hash' => '$2y$13$EjaPFBnZOQsHdGuHI.xvhuDp1fHpo8hKRSk6yshqa9c5EG8s3C3lO', 9 | 'password_reset_token' => 'ExzkCOaYc1L8IOBs4wdTGGbgNiG3Wz1I_1402312317', 10 | 'created_at' => '1402312317', 11 | 'updated_at' => '1402312317', 12 | 'email' => 'nicole.paucek@schultz.info', 13 | ], 14 | ]; 15 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/config/acceptance.php: -------------------------------------------------------------------------------- 1 | 'app-common', 12 | 'basePath' => dirname(__DIR__), 13 | ] 14 | ); 15 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/config/console/unit.php: -------------------------------------------------------------------------------- 1 | [ 7 | 'request' => [ 8 | // it's not recommended to run functional tests with CSRF validation enabled 9 | 'enableCsrfValidation' => false, 10 | // but if you absolutely need it set cookie domain to localhost 11 | /* 12 | 'csrfCookie' => [ 13 | 'domain' => 'localhost', 14 | ], 15 | */ 16 | ], 17 | ], 18 | ]; -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/config/unit.php: -------------------------------------------------------------------------------- 1 | wantTo('ensure that about works'); 9 | AboutPage::openBy($I); 10 | $I->see('About', 'h1'); 11 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/frontend/acceptance/HomeCept.php: -------------------------------------------------------------------------------- 1 | wantTo('ensure that home page works'); 8 | $I->amOnPage(Yii::$app->homeUrl); 9 | $I->see('My Company'); 10 | $I->seeLink('About'); 11 | $I->click('About'); 12 | $I->see('This is the About page.'); 13 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/frontend/acceptance/_bootstrap.php: -------------------------------------------------------------------------------- 1 | wantTo('ensure that about works'); 9 | AboutPage::openBy($I); 10 | $I->see('About', 'h1'); 11 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/frontend/functional/HomeCept.php: -------------------------------------------------------------------------------- 1 | wantTo('ensure that home page works'); 8 | $I->amOnPage(Yii::$app->homeUrl); 9 | $I->see('My Company'); 10 | $I->seeLink('About'); 11 | $I->click('About'); 12 | $I->see('This is the About page.'); 13 | -------------------------------------------------------------------------------- /apps/advanced/tests/codeception/frontend/functional/_bootstrap.php: -------------------------------------------------------------------------------- 1 | 7 | rem @link http://www.yiiframework.com/ 8 | rem @copyright Copyright (c) 2008 Yii Software LLC 9 | rem @license http://www.yiiframework.com/license/ 10 | rem ------------------------------------------------------------- 11 | 12 | @setlocal 13 | 14 | set YII_PATH=%~dp0 15 | 16 | if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe 17 | 18 | "%PHP_COMMAND%" "%YII_PATH%yii" %* 19 | 20 | @endlocal 21 | -------------------------------------------------------------------------------- /apps/basic/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory" : "vendor/bower" 3 | } 4 | -------------------------------------------------------------------------------- /apps/basic/.gitignore: -------------------------------------------------------------------------------- 1 | # phpstorm project files 2 | .idea 3 | 4 | # netbeans project files 5 | nbproject 6 | 7 | # zend studio for eclipse project files 8 | .buildpath 9 | .project 10 | .settings 11 | 12 | # windows thumbnail cache 13 | Thumbs.db 14 | 15 | # composer vendor dir 16 | /vendor 17 | 18 | # composer itself is not needed 19 | composer.phar 20 | 21 | # Mac DS_Store Files 22 | .DS_Store 23 | 24 | # phpunit itself is not needed 25 | phpunit.phar 26 | # local phpunit config 27 | /phpunit.xml 28 | -------------------------------------------------------------------------------- /apps/basic/config/db.php: -------------------------------------------------------------------------------- 1 | 'yii\db\Connection', 5 | 'dsn' => 'mysql:host=localhost;dbname=yii2basic', 6 | 'username' => 'root', 7 | 'password' => '', 8 | 'charset' => 'utf8', 9 | ]; 10 | -------------------------------------------------------------------------------- /apps/basic/config/params.php: -------------------------------------------------------------------------------- 1 | 'admin@example.com', 5 | ]; 6 | -------------------------------------------------------------------------------- /apps/basic/runtime/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /apps/basic/tests/codeception/.gitignore: -------------------------------------------------------------------------------- 1 | # these files are auto generated by codeception build 2 | /unit/UnitTester.php 3 | /functional/FunctionalTester.php 4 | /acceptance/AcceptanceTester.php 5 | -------------------------------------------------------------------------------- /apps/basic/tests/codeception/_output/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /apps/basic/tests/codeception/_pages/AboutPage.php: -------------------------------------------------------------------------------- 1 | wantTo('ensure that about works'); 9 | AboutPage::openBy($I); 10 | $I->see('About', 'h1'); 11 | -------------------------------------------------------------------------------- /apps/basic/tests/codeception/acceptance/HomeCept.php: -------------------------------------------------------------------------------- 1 | wantTo('ensure that home page works'); 7 | $I->amOnPage(Yii::$app->homeUrl); 8 | $I->see('My Company'); 9 | $I->seeLink('About'); 10 | $I->click('About'); 11 | $I->see('This is the About page.'); 12 | -------------------------------------------------------------------------------- /apps/basic/tests/codeception/acceptance/_bootstrap.php: -------------------------------------------------------------------------------- 1 | run(); 20 | exit($exitCode); 21 | -------------------------------------------------------------------------------- /apps/basic/tests/codeception/bin/yii.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | rem ------------------------------------------------------------- 4 | rem Yii command line bootstrap script for Windows. 5 | rem 6 | rem @author Qiang Xue 7 | rem @link http://www.yiiframework.com/ 8 | rem @copyright Copyright (c) 2008 Yii Software LLC 9 | rem @license http://www.yiiframework.com/license/ 10 | rem ------------------------------------------------------------- 11 | 12 | @setlocal 13 | 14 | set YII_PATH=%~dp0 15 | 16 | if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe 17 | 18 | "%PHP_COMMAND%" "%YII_PATH%yii" %* 19 | 20 | @endlocal 21 | -------------------------------------------------------------------------------- /apps/basic/tests/codeception/config/acceptance.php: -------------------------------------------------------------------------------- 1 | wantTo('ensure that about works'); 9 | AboutPage::openBy($I); 10 | $I->see('About', 'h1'); 11 | -------------------------------------------------------------------------------- /apps/basic/tests/codeception/functional/HomeCept.php: -------------------------------------------------------------------------------- 1 | wantTo('ensure that home page works'); 7 | $I->amOnPage(Yii::$app->homeUrl); 8 | $I->see('My Company'); 9 | $I->seeLink('About'); 10 | $I->click('About'); 11 | $I->see('This is the About page.'); 12 | -------------------------------------------------------------------------------- /apps/basic/tests/codeception/functional/_bootstrap.php: -------------------------------------------------------------------------------- 1 | loadFixtures(['user']); 14 | } 15 | 16 | // TODO add test methods here 17 | } 18 | -------------------------------------------------------------------------------- /apps/basic/tests/codeception/unit/templates/fixtures/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/apps/basic/tests/codeception/unit/templates/fixtures/.gitkeep -------------------------------------------------------------------------------- /apps/basic/views/site/about.php: -------------------------------------------------------------------------------- 1 | title = 'About'; 6 | $this->params['breadcrumbs'][] = $this->title; 7 | ?> 8 |
9 |

title) ?>

10 | 11 |

12 | This is the About page. You may modify the following file to customize its content: 13 |

14 | 15 | 16 |
17 | -------------------------------------------------------------------------------- /apps/basic/views/site/error.php: -------------------------------------------------------------------------------- 1 | title = $name; 11 | ?> 12 |
13 | 14 |

title) ?>

15 | 16 |
17 | 18 |
19 | 20 |

21 | The above error occurred while the Web server was processing your request. 22 |

23 |

24 | Please contact us if you think this is a server error. Thank you. 25 |

26 | 27 |
28 | -------------------------------------------------------------------------------- /apps/basic/web/assets/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /apps/basic/web/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/apps/basic/web/favicon.ico -------------------------------------------------------------------------------- /apps/basic/web/index-test.php: -------------------------------------------------------------------------------- 1 | run(); 17 | -------------------------------------------------------------------------------- /apps/basic/web/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: -------------------------------------------------------------------------------- /apps/basic/yii.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | rem ------------------------------------------------------------- 4 | rem Yii command line bootstrap script for Windows. 5 | rem 6 | rem @author Qiang Xue 7 | rem @link http://www.yiiframework.com/ 8 | rem @copyright Copyright (c) 2008 Yii Software LLC 9 | rem @license http://www.yiiframework.com/license/ 10 | rem ------------------------------------------------------------- 11 | 12 | @setlocal 13 | 14 | set YII_PATH=%~dp0 15 | 16 | if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe 17 | 18 | "%PHP_COMMAND%" "%YII_PATH%yii" %* 19 | 20 | @endlocal 21 | -------------------------------------------------------------------------------- /apps/benchmark/index.php: -------------------------------------------------------------------------------- 1 | 'benchmark', 9 | 'basePath' => __DIR__ . '/protected', 10 | 'components' => [ 11 | 'urlManager' => [ 12 | 'enablePrettyUrl' => true, 13 | ], 14 | ], 15 | ]; 16 | 17 | $application = new yii\web\Application($config); 18 | $application->run(); 19 | -------------------------------------------------------------------------------- /apps/benchmark/protected/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all 2 | -------------------------------------------------------------------------------- /apps/benchmark/protected/controllers/SiteController.php: -------------------------------------------------------------------------------- 1 | 9 | rem @link http://www.yiiframework.com/ 10 | rem @copyright 2008 Yii Software LLC 11 | rem @license http://www.yiiframework.com/license/ 12 | rem @version $Id$ 13 | rem ------------------------------------------------------------- 14 | 15 | @setlocal 16 | 17 | set BUILD_PATH=%~dp0 18 | 19 | if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe 20 | 21 | %PHP_COMMAND% "%BUILD_PATH%build" %* 22 | 23 | @endlocal -------------------------------------------------------------------------------- /docs/guide-es/images/application-structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-es/images/application-structure.png -------------------------------------------------------------------------------- /docs/guide-es/images/request-lifecycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-es/images/request-lifecycle.png -------------------------------------------------------------------------------- /docs/guide-es/images/start-app-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-es/images/start-app-installed.png -------------------------------------------------------------------------------- /docs/guide-es/images/start-country-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-es/images/start-country-list.png -------------------------------------------------------------------------------- /docs/guide-es/images/start-entry-confirmation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-es/images/start-entry-confirmation.png -------------------------------------------------------------------------------- /docs/guide-es/images/start-form-validation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-es/images/start-form-validation.png -------------------------------------------------------------------------------- /docs/guide-es/images/start-gii-country-grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-es/images/start-gii-country-grid.png -------------------------------------------------------------------------------- /docs/guide-es/images/start-gii-country-update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-es/images/start-gii-country-update.png -------------------------------------------------------------------------------- /docs/guide-es/images/start-gii-crud-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-es/images/start-gii-crud-preview.png -------------------------------------------------------------------------------- /docs/guide-es/images/start-gii-crud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-es/images/start-gii-crud.png -------------------------------------------------------------------------------- /docs/guide-es/images/start-gii-model-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-es/images/start-gii-model-preview.png -------------------------------------------------------------------------------- /docs/guide-es/images/start-gii-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-es/images/start-gii-model.png -------------------------------------------------------------------------------- /docs/guide-es/images/start-gii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-es/images/start-gii.png -------------------------------------------------------------------------------- /docs/guide-es/images/start-hello-world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-es/images/start-hello-world.png -------------------------------------------------------------------------------- /docs/guide-fr/images/advanced-app-configs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/advanced-app-configs.png -------------------------------------------------------------------------------- /docs/guide-fr/images/application-structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/application-structure.png -------------------------------------------------------------------------------- /docs/guide-fr/images/gii-entry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/gii-entry.png -------------------------------------------------------------------------------- /docs/guide-fr/images/gii-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/gii-preview.png -------------------------------------------------------------------------------- /docs/guide-fr/images/rbac-access-check-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/rbac-access-check-1.png -------------------------------------------------------------------------------- /docs/guide-fr/images/rbac-access-check-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/rbac-access-check-2.png -------------------------------------------------------------------------------- /docs/guide-fr/images/rbac-access-check-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/rbac-access-check-3.png -------------------------------------------------------------------------------- /docs/guide-fr/images/rbac-hierarchy-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/rbac-hierarchy-1.png -------------------------------------------------------------------------------- /docs/guide-fr/images/rbac-hierarchy-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/rbac-hierarchy-2.png -------------------------------------------------------------------------------- /docs/guide-fr/images/request-lifecycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/request-lifecycle.png -------------------------------------------------------------------------------- /docs/guide-fr/images/start-app-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/start-app-installed.png -------------------------------------------------------------------------------- /docs/guide-fr/images/start-country-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/start-country-list.png -------------------------------------------------------------------------------- /docs/guide-fr/images/start-entry-confirmation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/start-entry-confirmation.png -------------------------------------------------------------------------------- /docs/guide-fr/images/start-form-validation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/start-form-validation.png -------------------------------------------------------------------------------- /docs/guide-fr/images/start-gii-country-grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/start-gii-country-grid.png -------------------------------------------------------------------------------- /docs/guide-fr/images/start-gii-country-update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/start-gii-country-update.png -------------------------------------------------------------------------------- /docs/guide-fr/images/start-gii-crud-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/start-gii-crud-preview.png -------------------------------------------------------------------------------- /docs/guide-fr/images/start-gii-crud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/start-gii-crud.png -------------------------------------------------------------------------------- /docs/guide-fr/images/start-gii-model-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/start-gii-model-preview.png -------------------------------------------------------------------------------- /docs/guide-fr/images/start-gii-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/start-gii-model.png -------------------------------------------------------------------------------- /docs/guide-fr/images/start-gii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/start-gii.png -------------------------------------------------------------------------------- /docs/guide-fr/images/start-hello-world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-fr/images/start-hello-world.png -------------------------------------------------------------------------------- /docs/guide-ja/caching-overview.md: -------------------------------------------------------------------------------- 1 | キャッシュ 2 | ======= 3 | 4 | ウェブアプリケーションのパフォーマンスを向上させるための簡単で効果的な方法としてキャッシュというものがあります。 5 | 比較的静的なデータをキャッシュに格納し、要求に応じてキャッシュからそれらを取得することによって、アプリケーションは毎回一からデータを生成するのに必要な時間を節約することができます。 6 | 7 | キャッシュはアプリケーション内のさまざまなレベルと場所で使用することができます。 8 | 例えばサーバサイドでの低いレベルでは、データベースから取得した最新の記事情報リストのような基本的なデータを格納するために使用することが出来ます。 9 | 高いレベルでは、ウェブページの断片または全体、例えば、最新の記事のレンダリング結果を格納するために使用することが出来ます。 10 | クライアントサイドでは、ブラウザのキャッシュに最近訪れたことのあるページの内容を格納するために HTTP キャッシュを使用することもできます。 11 | 12 | Yii はこれら全てのキャッシュ機構をサポートしています: 13 | 14 | * [データキャッシュ](caching-data.md) 15 | * [フラグメントキャッシュ](caching-fragment.md) 16 | * [ページキャッシュ](caching-page.md) 17 | * [HTTP キャッシュ](caching-http.md) 18 | -------------------------------------------------------------------------------- /docs/guide-ja/db-elasticsearch.md: -------------------------------------------------------------------------------- 1 | Elasticsearch 2 | ============= 3 | 4 | > Note|注意: この節はまだ執筆中です。 5 | > 6 | > まだ内容がありません。 7 | -------------------------------------------------------------------------------- /docs/guide-ja/db-mongodb.md: -------------------------------------------------------------------------------- 1 | Mongo DB 2 | ======== 3 | 4 | > Note|注意: この節はまだ執筆中です。 5 | > 6 | > まだ内容がありません。 7 | -------------------------------------------------------------------------------- /docs/guide-ja/db-redis.md: -------------------------------------------------------------------------------- 1 | Redis 2 | ===== 3 | 4 | > Note|注意: この節はまだ執筆中です。 5 | > 6 | > まだ内容がありません。 7 | -------------------------------------------------------------------------------- /docs/guide-ja/db-sphinx.md: -------------------------------------------------------------------------------- 1 | Sphinx Search 2 | ============= 3 | 4 | > Note|注意: この節はまだ執筆中です。 5 | > 6 | > まだ内容がありません。 7 | -------------------------------------------------------------------------------- /docs/guide-ja/images/advanced-app-configs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/advanced-app-configs.png -------------------------------------------------------------------------------- /docs/guide-ja/images/application-lifecycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/application-lifecycle.png -------------------------------------------------------------------------------- /docs/guide-ja/images/application-structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/application-structure.png -------------------------------------------------------------------------------- /docs/guide-ja/images/gii-entry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/gii-entry.png -------------------------------------------------------------------------------- /docs/guide-ja/images/gii-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/gii-preview.png -------------------------------------------------------------------------------- /docs/guide-ja/images/rbac-access-check-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/rbac-access-check-1.png -------------------------------------------------------------------------------- /docs/guide-ja/images/rbac-access-check-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/rbac-access-check-2.png -------------------------------------------------------------------------------- /docs/guide-ja/images/rbac-access-check-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/rbac-access-check-3.png -------------------------------------------------------------------------------- /docs/guide-ja/images/rbac-hierarchy-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/rbac-hierarchy-1.png -------------------------------------------------------------------------------- /docs/guide-ja/images/rbac-hierarchy-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/rbac-hierarchy-2.png -------------------------------------------------------------------------------- /docs/guide-ja/images/request-lifecycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/request-lifecycle.png -------------------------------------------------------------------------------- /docs/guide-ja/images/start-app-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/start-app-installed.png -------------------------------------------------------------------------------- /docs/guide-ja/images/start-country-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/start-country-list.png -------------------------------------------------------------------------------- /docs/guide-ja/images/start-entry-confirmation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/start-entry-confirmation.png -------------------------------------------------------------------------------- /docs/guide-ja/images/start-form-validation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/start-form-validation.png -------------------------------------------------------------------------------- /docs/guide-ja/images/start-gii-country-grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/start-gii-country-grid.png -------------------------------------------------------------------------------- /docs/guide-ja/images/start-gii-country-update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/start-gii-country-update.png -------------------------------------------------------------------------------- /docs/guide-ja/images/start-gii-crud-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/start-gii-crud-preview.png -------------------------------------------------------------------------------- /docs/guide-ja/images/start-gii-crud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/start-gii-crud.png -------------------------------------------------------------------------------- /docs/guide-ja/images/start-gii-model-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/start-gii-model-preview.png -------------------------------------------------------------------------------- /docs/guide-ja/images/start-gii-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/start-gii-model.png -------------------------------------------------------------------------------- /docs/guide-ja/images/start-gii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/start-gii.png -------------------------------------------------------------------------------- /docs/guide-ja/images/start-hello-world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ja/images/start-hello-world.png -------------------------------------------------------------------------------- /docs/guide-ja/test-acceptance.md: -------------------------------------------------------------------------------- 1 | 承認テスト 2 | ========== 3 | 4 | > Note|注意: この節はまだ執筆中です。 5 | 6 | - http://codeception.com/docs/04-AcceptanceTests 7 | 8 | 9 | アプリケーションテンプレートの承認テストを走らせる 10 | -------------------------------------------------- 11 | 12 | `apps/advanced/tests/README.md` および `apps/basic/tests/README.md` で提供されている説明を参照してください。 13 | -------------------------------------------------------------------------------- /docs/guide-ja/test-functional.md: -------------------------------------------------------------------------------- 1 | 機能テスト 2 | ========== 3 | 4 | > Note|注意: この節はまだ執筆中です。 5 | 6 | - http://codeception.com/docs/05-FunctionalTests 7 | 8 | アプリケーションテンプレートの機能テストを走らせる 9 | -------------------------------------------------- 10 | 11 | `apps/advanced/tests/README.md` および `apps/basic/tests/README.md` で提供されている説明を参照してください。 12 | -------------------------------------------------------------------------------- /docs/guide-ja/tool-api-doc.md: -------------------------------------------------------------------------------- 1 | API ドキュメントを生成する 2 | ========================== 3 | 4 | > Note|注意: この節はまだ執筆中です。 5 | > 6 | > まだ内容がありません。 7 | -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/advanced-app-configs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/advanced-app-configs.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/application-structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/application-structure.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/gii-entry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/gii-entry.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/gii-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/gii-preview.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/rbac-access-check-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/rbac-access-check-1.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/rbac-access-check-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/rbac-access-check-2.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/rbac-access-check-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/rbac-access-check-3.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/rbac-hierarchy-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/rbac-hierarchy-1.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/rbac-hierarchy-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/rbac-hierarchy-2.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/request-lifecycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/request-lifecycle.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/start-app-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/start-app-installed.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/start-country-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/start-country-list.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/start-entry-confirmation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/start-entry-confirmation.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/start-form-validation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/start-form-validation.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/start-gii-country-grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/start-gii-country-grid.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/start-gii-country-update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/start-gii-country-update.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/start-gii-crud-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/start-gii-crud-preview.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/start-gii-crud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/start-gii-crud.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/start-gii-model-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/start-gii-model-preview.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/start-gii-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/start-gii-model.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/start-gii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/start-gii.png -------------------------------------------------------------------------------- /docs/guide-pt-BR/images/start-hello-world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-pt-BR/images/start-hello-world.png -------------------------------------------------------------------------------- /docs/guide-ru/images/advanced-app-configs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/advanced-app-configs.png -------------------------------------------------------------------------------- /docs/guide-ru/images/application-structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/application-structure.png -------------------------------------------------------------------------------- /docs/guide-ru/images/request-lifecycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/request-lifecycle.png -------------------------------------------------------------------------------- /docs/guide-ru/images/start-app-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/start-app-installed.png -------------------------------------------------------------------------------- /docs/guide-ru/images/start-country-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/start-country-list.png -------------------------------------------------------------------------------- /docs/guide-ru/images/start-entry-confirmation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/start-entry-confirmation.png -------------------------------------------------------------------------------- /docs/guide-ru/images/start-form-validation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/start-form-validation.png -------------------------------------------------------------------------------- /docs/guide-ru/images/start-gii-country-grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/start-gii-country-grid.png -------------------------------------------------------------------------------- /docs/guide-ru/images/start-gii-country-update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/start-gii-country-update.png -------------------------------------------------------------------------------- /docs/guide-ru/images/start-gii-crud-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/start-gii-crud-preview.png -------------------------------------------------------------------------------- /docs/guide-ru/images/start-gii-crud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/start-gii-crud.png -------------------------------------------------------------------------------- /docs/guide-ru/images/start-gii-model-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/start-gii-model-preview.png -------------------------------------------------------------------------------- /docs/guide-ru/images/start-gii-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/start-gii-model.png -------------------------------------------------------------------------------- /docs/guide-ru/images/start-gii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/start-gii.png -------------------------------------------------------------------------------- /docs/guide-ru/images/start-hello-world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-ru/images/start-hello-world.png -------------------------------------------------------------------------------- /docs/guide-uk/images/application-lifecycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/application-lifecycle.png -------------------------------------------------------------------------------- /docs/guide-uk/images/application-structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/application-structure.png -------------------------------------------------------------------------------- /docs/guide-uk/images/request-lifecycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/request-lifecycle.png -------------------------------------------------------------------------------- /docs/guide-uk/images/start-app-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/start-app-installed.png -------------------------------------------------------------------------------- /docs/guide-uk/images/start-country-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/start-country-list.png -------------------------------------------------------------------------------- /docs/guide-uk/images/start-entry-confirmation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/start-entry-confirmation.png -------------------------------------------------------------------------------- /docs/guide-uk/images/start-form-validation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/start-form-validation.png -------------------------------------------------------------------------------- /docs/guide-uk/images/start-gii-country-grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/start-gii-country-grid.png -------------------------------------------------------------------------------- /docs/guide-uk/images/start-gii-country-update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/start-gii-country-update.png -------------------------------------------------------------------------------- /docs/guide-uk/images/start-gii-crud-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/start-gii-crud-preview.png -------------------------------------------------------------------------------- /docs/guide-uk/images/start-gii-crud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/start-gii-crud.png -------------------------------------------------------------------------------- /docs/guide-uk/images/start-gii-model-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/start-gii-model-preview.png -------------------------------------------------------------------------------- /docs/guide-uk/images/start-gii-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/start-gii-model.png -------------------------------------------------------------------------------- /docs/guide-uk/images/start-gii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/start-gii.png -------------------------------------------------------------------------------- /docs/guide-uk/images/start-hello-world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-uk/images/start-hello-world.png -------------------------------------------------------------------------------- /docs/guide-zh-CN/caching-overview.md: -------------------------------------------------------------------------------- 1 | 缓存 2 | ======= 3 | 4 | 缓存是提升 Web 应用性能简便有效的方式。通过将相对静态的数据存储到缓存并在收到请求时取回缓存,应用程序便节省了每次重新生成这些数据所需的时间。 5 | 6 | 缓存可以应用在 Web 应用程序的任何层级任何位置。在服务器端,在较的低层面,缓存可能用于存储基础数据,例如从数据库中取出的最新文章列表;在较高的层面,缓存可能用于存储一段或整个 Web 页面,例如最新文章的渲染结果。在客户端,HTTP 缓存可能用于将最近访问的页面内容存储到浏览器缓存中。 7 | 8 | Yii 支持如上所有缓存机制: 9 | 10 | * [数据缓存](caching-data.md) 11 | * [片段缓存](caching-fragment.md) 12 | * [页面缓存](caching-page.md) 13 | * [HTTP 缓存](caching-http.md) 14 | -------------------------------------------------------------------------------- /docs/guide-zh-CN/images/advanced-app-configs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-zh-CN/images/advanced-app-configs.png -------------------------------------------------------------------------------- /docs/guide-zh-CN/images/application-structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-zh-CN/images/application-structure.png -------------------------------------------------------------------------------- /docs/guide-zh-CN/images/rbac-access-check-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-zh-CN/images/rbac-access-check-1.png -------------------------------------------------------------------------------- /docs/guide-zh-CN/images/rbac-access-check-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-zh-CN/images/rbac-access-check-2.png -------------------------------------------------------------------------------- /docs/guide-zh-CN/images/rbac-access-check-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-zh-CN/images/rbac-access-check-3.png -------------------------------------------------------------------------------- /docs/guide-zh-CN/images/rbac-hierarchy-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-zh-CN/images/rbac-hierarchy-1.png -------------------------------------------------------------------------------- /docs/guide-zh-CN/images/rbac-hierarchy-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-zh-CN/images/rbac-hierarchy-2.png -------------------------------------------------------------------------------- /docs/guide-zh-CN/images/request-lifecycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide-zh-CN/images/request-lifecycle.png -------------------------------------------------------------------------------- /docs/guide/db-elasticsearch.md: -------------------------------------------------------------------------------- 1 | Elasticsearch 2 | ============= 3 | 4 | > Note: This section is under development. 5 | > 6 | > It has no content yet. 7 | -------------------------------------------------------------------------------- /docs/guide/db-mongodb.md: -------------------------------------------------------------------------------- 1 | Mongo DB 2 | ======== 3 | 4 | > Note: This section is under development. 5 | > 6 | > It has no content yet. 7 | -------------------------------------------------------------------------------- /docs/guide/db-redis.md: -------------------------------------------------------------------------------- 1 | Redis 2 | ===== 3 | 4 | > Note: This section is under development. 5 | > 6 | > It has no content yet. 7 | -------------------------------------------------------------------------------- /docs/guide/db-sphinx.md: -------------------------------------------------------------------------------- 1 | Sphinx Search 2 | ============= 3 | 4 | > Note: This section is under development. 5 | > 6 | > It has no content yet. 7 | -------------------------------------------------------------------------------- /docs/guide/images/advanced-app-configs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/advanced-app-configs.png -------------------------------------------------------------------------------- /docs/guide/images/application-lifecycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/application-lifecycle.png -------------------------------------------------------------------------------- /docs/guide/images/application-structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/application-structure.png -------------------------------------------------------------------------------- /docs/guide/images/gii-entry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/gii-entry.png -------------------------------------------------------------------------------- /docs/guide/images/gii-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/gii-preview.png -------------------------------------------------------------------------------- /docs/guide/images/rbac-access-check-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/rbac-access-check-1.png -------------------------------------------------------------------------------- /docs/guide/images/rbac-access-check-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/rbac-access-check-2.png -------------------------------------------------------------------------------- /docs/guide/images/rbac-access-check-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/rbac-access-check-3.png -------------------------------------------------------------------------------- /docs/guide/images/rbac-hierarchy-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/rbac-hierarchy-1.png -------------------------------------------------------------------------------- /docs/guide/images/rbac-hierarchy-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/rbac-hierarchy-2.png -------------------------------------------------------------------------------- /docs/guide/images/request-lifecycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/request-lifecycle.png -------------------------------------------------------------------------------- /docs/guide/images/start-app-installed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/start-app-installed.png -------------------------------------------------------------------------------- /docs/guide/images/start-country-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/start-country-list.png -------------------------------------------------------------------------------- /docs/guide/images/start-entry-confirmation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/start-entry-confirmation.png -------------------------------------------------------------------------------- /docs/guide/images/start-form-validation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/start-form-validation.png -------------------------------------------------------------------------------- /docs/guide/images/start-gii-country-grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/start-gii-country-grid.png -------------------------------------------------------------------------------- /docs/guide/images/start-gii-country-update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/start-gii-country-update.png -------------------------------------------------------------------------------- /docs/guide/images/start-gii-crud-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/start-gii-crud-preview.png -------------------------------------------------------------------------------- /docs/guide/images/start-gii-crud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/start-gii-crud.png -------------------------------------------------------------------------------- /docs/guide/images/start-gii-model-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/start-gii-model-preview.png -------------------------------------------------------------------------------- /docs/guide/images/start-gii-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/start-gii-model.png -------------------------------------------------------------------------------- /docs/guide/images/start-gii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/start-gii.png -------------------------------------------------------------------------------- /docs/guide/images/start-hello-world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/guide/images/start-hello-world.png -------------------------------------------------------------------------------- /docs/guide/test-acceptance.md: -------------------------------------------------------------------------------- 1 | Acceptance Tests 2 | ================ 3 | 4 | > Note: This section is under development. 5 | 6 | - http://codeception.com/docs/04-AcceptanceTests 7 | 8 | Running basic and advanced template acceptance tests 9 | ---------------------------------------------------- 10 | 11 | Please refer to instructions provided in `apps/advanced/tests/README.md` and `apps/basic/tests/README.md`. 12 | -------------------------------------------------------------------------------- /docs/guide/test-functional.md: -------------------------------------------------------------------------------- 1 | Functional Tests 2 | ================ 3 | 4 | > Note: This section is under development. 5 | 6 | - http://codeception.com/docs/05-FunctionalTests 7 | 8 | Running basic and advanced template functional tests 9 | ---------------------------------------------------- 10 | 11 | Please refer to instructions provided in `apps/advanced/tests/README.md` and `apps/basic/tests/README.md`. -------------------------------------------------------------------------------- /docs/guide/tool-api-doc.md: -------------------------------------------------------------------------------- 1 | Generating Api Documentation 2 | ============================ 3 | 4 | > Note: This section is under development. 5 | > 6 | > It has no content yet. 7 | -------------------------------------------------------------------------------- /docs/internals-ja/automation.md: -------------------------------------------------------------------------------- 1 | 自動化 2 | ====== 3 | 4 | Yii の開発に取り組む際に、自動化できるタスクがいくつかあります: 5 | 6 | - フレームワークのルートディレクトリに配置されるクラスマップ `classes.php` の生成。 7 | `./build/build classmap` を実行して生成してください。 8 | 9 | - クラスファイルの中の、ゲッターとセッターによって導入されるプロパティを記述する `@property` 注釈の生成。 10 | `./build/build php-doc/property` を実行して注釈を更新してください。 11 | 12 | - コードスタイルと phpdoc コメントの些細な問題の修正。 13 | `./build/build php-doc/fix` を実行して修正してください。 14 | このコマンドは完璧なものではないため、望ましくない変更があるかもしれませんので、コミットする前に変更点をチェックしてください。 15 | `git add -p` を使って変更をレビューすることが出来ます。 16 | -------------------------------------------------------------------------------- /docs/internals/exception_hierarchy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/internals/exception_hierarchy.png -------------------------------------------------------------------------------- /docs/internals/exception_hierarchy.vsd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/docs/internals/exception_hierarchy.vsd -------------------------------------------------------------------------------- /extensions/apidoc/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | composer.lock 3 | -------------------------------------------------------------------------------- /extensions/apidoc/apidoc.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | rem ------------------------------------------------------------- 4 | rem Yii command line bootstrap script for Windows. 5 | rem 6 | rem @author Qiang Xue 7 | rem @link http://www.yiiframework.com/ 8 | rem @copyright Copyright (c) 2008 Yii Software LLC 9 | rem @license http://www.yiiframework.com/license/ 10 | rem ------------------------------------------------------------- 11 | 12 | @setlocal 13 | 14 | set YII_PATH=%~dp0 15 | 16 | if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe 17 | 18 | "%PHP_COMMAND%" "%YII_PATH%apidoc" %* 19 | 20 | @endlocal 21 | -------------------------------------------------------------------------------- /extensions/apidoc/templates/html/README.md: -------------------------------------------------------------------------------- 1 | The html API doc template 2 | ========================= 3 | 4 | This templates provides view files and a Renderer class that can be reused in other html templates. -------------------------------------------------------------------------------- /extensions/apidoc/templates/online/README.md: -------------------------------------------------------------------------------- 1 | The `online` API doc template 2 | ============================= 3 | 4 | This template is used to generate the Yii framework API docs for yiiframework.com. -------------------------------------------------------------------------------- /extensions/apidoc/templates/pdf/Makefile: -------------------------------------------------------------------------------- 1 | 2 | 3 | pdf: 4 | # run pdflatex twice to generate TOC correctly 5 | pdflatex -halt-on-error main.tex 6 | pdflatex -halt-on-error main.tex 7 | mv main.pdf guide.pdf 8 | -------------------------------------------------------------------------------- /extensions/authclient/assets/authchoice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/extensions/authclient/assets/authchoice.png -------------------------------------------------------------------------------- /extensions/authclient/widgets/AuthChoiceStyleAsset.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class AuthChoiceStyleAsset extends AssetBundle 19 | { 20 | public $sourcePath = '@yii/authclient/assets'; 21 | public $css = [ 22 | 'authchoice.css', 23 | ]; 24 | } -------------------------------------------------------------------------------- /extensions/bootstrap/BootstrapAsset.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class BootstrapAsset extends AssetBundle 19 | { 20 | public $sourcePath = '@bower/bootstrap/dist'; 21 | public $css = [ 22 | 'css/bootstrap.css', 23 | ]; 24 | } 25 | -------------------------------------------------------------------------------- /extensions/codeception/DbTestCase.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class DbTestCase extends TestCase 19 | { 20 | /** 21 | * @inheritdoc 22 | */ 23 | public function globalFixtures() 24 | { 25 | return [ 26 | InitDbFixture::className(), 27 | ]; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /extensions/debug/assets/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/extensions/debug/assets/bg.png -------------------------------------------------------------------------------- /extensions/debug/components/search/matchers/GreaterThan.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class GreaterThan extends Base 17 | { 18 | /** 19 | * @inheritdoc 20 | */ 21 | public function match($value) 22 | { 23 | return ($value > $this->baseValue); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /extensions/debug/components/search/matchers/LowerThan.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class LowerThan extends Base 17 | { 18 | /** 19 | * @inheritdoc 20 | */ 21 | public function match($value) 22 | { 23 | return ($value < $this->baseValue); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /extensions/debug/views/default/panels/assets/summary.php: -------------------------------------------------------------------------------- 1 | data)): 4 | ?> 5 | 8 | 9 | -------------------------------------------------------------------------------- /extensions/debug/views/default/panels/config/summary.php: -------------------------------------------------------------------------------- 1 | 4 | 12 | -------------------------------------------------------------------------------- /extensions/debug/views/default/panels/db/summary.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /extensions/debug/views/default/panels/mail/summary.php: -------------------------------------------------------------------------------- 1 | 5 |
6 | Mail 7 |
8 | 9 | -------------------------------------------------------------------------------- /extensions/debug/views/default/panels/profile/summary.php: -------------------------------------------------------------------------------- 1 | 6 |
7 | Time 8 | Memory 9 |
10 | -------------------------------------------------------------------------------- /extensions/debug/views/layouts/main.php: -------------------------------------------------------------------------------- 1 | 8 | beginPage() ?> 9 | 10 | 11 | 12 | 13 | 14 | 15 | <?= Html::encode($this->title) ?> 16 | head() ?> 17 | 18 | 19 | beginBody() ?> 20 | 21 | endBody() ?> 22 | 23 | 24 | endPage() ?> 25 | -------------------------------------------------------------------------------- /extensions/elasticsearch/images/README-debug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/extensions/elasticsearch/images/README-debug.png -------------------------------------------------------------------------------- /extensions/gii/TypeAheadAsset.php: -------------------------------------------------------------------------------- 1 | 15 | * @since 2.0 16 | */ 17 | class TypeAheadAsset extends AssetBundle 18 | { 19 | public $sourcePath = '@bower/typeahead.js/dist'; 20 | public $js = [ 21 | 'typeahead.bundle.js', 22 | ]; 23 | public $depends = [ 24 | 'yii\bootstrap\BootstrapAsset', 25 | 'yii\bootstrap\BootstrapPluginAsset', 26 | ]; 27 | } 28 | -------------------------------------------------------------------------------- /extensions/gii/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/extensions/gii/assets/logo.png -------------------------------------------------------------------------------- /extensions/gii/generators/controller/default/view.php: -------------------------------------------------------------------------------- 1 | 12 | /* @var $this yii\web\View */ 13 | " ?> 14 | 15 |

getControllerID() . '/' . $action ?>

16 | 17 |

18 | You may change the content of this page by modifying 19 | the file __FILE__; ?>. 20 |

21 | -------------------------------------------------------------------------------- /extensions/gii/generators/controller/form.php: -------------------------------------------------------------------------------- 1 | field($generator, 'controllerClass'); 7 | echo $form->field($generator, 'actions'); 8 | echo $form->field($generator, 'viewPath'); 9 | echo $form->field($generator, 'baseClass'); 10 | -------------------------------------------------------------------------------- /extensions/gii/generators/extension/default/AutoloadExample.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | namespace namespace, 0, -1) ?>; 4 | 5 | /** 6 | * This is just an example. 7 | */ 8 | class AutoloadExample extends \yii\base\Widget 9 | { 10 | public function run() 11 | { 12 | return "Hello!"; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /extensions/gii/generators/form/form.php: -------------------------------------------------------------------------------- 1 | field($generator, 'viewName'); 7 | echo $form->field($generator, 'modelClass'); 8 | echo $form->field($generator, 'scenarioName'); 9 | echo $form->field($generator, 'viewPath'); 10 | echo $form->field($generator, 'enableI18N')->checkbox(); 11 | echo $form->field($generator, 'messageCategory'); 12 | -------------------------------------------------------------------------------- /extensions/gii/generators/module/default/controller.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | namespace getControllerNamespace() ?>; 13 | 14 | use yii\web\Controller; 15 | 16 | class DefaultController extends Controller 17 | { 18 | public function actionIndex() 19 | { 20 | return $this->render('index'); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /extensions/gii/generators/module/form.php: -------------------------------------------------------------------------------- 1 | 7 |
8 | field($generator, 'moduleClass'); 10 | echo $form->field($generator, 'moduleID'); 11 | ?> 12 |
13 | -------------------------------------------------------------------------------- /extensions/gii/views/default/diff.php: -------------------------------------------------------------------------------- 1 | 5 |
6 | 7 |
Diff is not supported for this file type.
8 | 9 |
Identical.
10 | 11 |
12 | 13 |
14 | -------------------------------------------------------------------------------- /extensions/gii/views/default/view/results.php: -------------------------------------------------------------------------------- 1 | 7 |
8 | There was something wrong when generating the code. Please check the following messages.
'; 11 | } else { 12 | echo '
' . $generator->successMessage() . '
'; 13 | } 14 | ?> 15 |
16 | 17 | -------------------------------------------------------------------------------- /extensions/jui/JuiAsset.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class JuiAsset extends AssetBundle 17 | { 18 | public $sourcePath = '@bower/jquery-ui'; 19 | public $js = [ 20 | 'jquery-ui.js', 21 | ]; 22 | public $css = [ 23 | 'themes/smoothness/jquery-ui.css', 24 | ]; 25 | public $depends = [ 26 | 'yii\web\JqueryAsset', 27 | ]; 28 | } 29 | -------------------------------------------------------------------------------- /extensions/mongodb/Exception.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Exception extends \yii\base\Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName() 22 | { 23 | return 'MongoDB Exception'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /extensions/mongodb/gii/model/form.php: -------------------------------------------------------------------------------- 1 | field($generator, 'collectionName'); 7 | echo $form->field($generator, 'databaseName'); 8 | echo $form->field($generator, 'attributeList'); 9 | echo $form->field($generator, 'modelClass'); 10 | echo $form->field($generator, 'ns'); 11 | echo $form->field($generator, 'baseClass'); 12 | echo $form->field($generator, 'db'); 13 | echo $form->field($generator, 'enableI18N')->checkbox(); 14 | echo $form->field($generator, 'messageCategory'); 15 | -------------------------------------------------------------------------------- /extensions/mongodb/views/migration.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | class extends \yii\mongodb\Migration 12 | { 13 | public function up() 14 | { 15 | 16 | } 17 | 18 | public function down() 19 | { 20 | echo " cannot be reverted.\n"; 21 | 22 | return false; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /extensions/sphinx/gii/model/form.php: -------------------------------------------------------------------------------- 1 | field($generator, 'indexName'); 7 | echo $form->field($generator, 'modelClass'); 8 | echo $form->field($generator, 'ns'); 9 | echo $form->field($generator, 'baseClass'); 10 | echo $form->field($generator, 'db'); 11 | echo $form->field($generator, 'useIndexPrefix')->checkbox(); 12 | echo $form->field($generator, 'enableI18N')->checkbox(); 13 | echo $form->field($generator, 'messageCategory'); 14 | -------------------------------------------------------------------------------- /framework/.gitignore: -------------------------------------------------------------------------------- 1 | phpunit.xml 2 | composer.lock 3 | 4 | -------------------------------------------------------------------------------- /framework/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all 2 | -------------------------------------------------------------------------------- /framework/base/Exception.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Exception extends \Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName() 22 | { 23 | return 'Exception'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /framework/base/InvalidCallException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class InvalidCallException extends \BadMethodCallException 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName() 22 | { 23 | return 'Invalid Call'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /framework/base/InvalidConfigException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class InvalidConfigException extends Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName() 22 | { 23 | return 'Invalid Configuration'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /framework/base/InvalidRouteException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class InvalidRouteException extends UserException 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName() 22 | { 23 | return 'Invalid Route'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /framework/base/ModelEvent.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class ModelEvent extends Event 17 | { 18 | /** 19 | * @var boolean whether the model is in valid status. Defaults to true. 20 | * A model is in valid status if it passes validations or certain checks. 21 | */ 22 | public $isValid = true; 23 | } 24 | -------------------------------------------------------------------------------- /framework/base/NotSupportedException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class NotSupportedException extends Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName() 22 | { 23 | return 'Not Supported'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /framework/base/UnknownClassException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class UnknownClassException extends Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName() 22 | { 23 | return 'Unknown Class'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /framework/base/UnknownPropertyException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class UnknownPropertyException extends Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName() 22 | { 23 | return 'Unknown Property'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /framework/base/UserException.php: -------------------------------------------------------------------------------- 1 | 15 | * @since 2.0 16 | */ 17 | class UserException extends Exception 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /framework/captcha/SpicyRice.md: -------------------------------------------------------------------------------- 1 | ## Spicy Rice font 2 | 3 | * **Author:** Brian J. Bonislawsky, Astigmatic (AOETI, Astigmatic One Eye Typographic Institute) 4 | * **License:** SIL Open Font License (OFL), version 1.1, [notes and FAQ](http://scripts.sil.org/OFL) 5 | 6 | ## Links 7 | 8 | * [Astigmatic](http://www.astigmatic.com/) 9 | * [Google WebFonts](http://www.google.com/webfonts/specimen/Spicy+Rice) 10 | * [fontsquirrel.com](http://www.fontsquirrel.com/fonts/spicy-rice) 11 | * [fontspace.com](http://www.fontspace.com/astigmatic-one-eye-typographic-institute/spicy-rice) 12 | -------------------------------------------------------------------------------- /framework/captcha/SpicyRice.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/framework/captcha/SpicyRice.ttf -------------------------------------------------------------------------------- /framework/console/Exception.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class Exception extends UserException 19 | { 20 | /** 21 | * @return string the user-friendly name of this exception 22 | */ 23 | public function getName() 24 | { 25 | return 'Error'; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /framework/console/Response.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Response extends \yii\base\Response 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /framework/db/AfterSaveEvent.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class AfterSaveEvent extends Event 19 | { 20 | /** 21 | * @var array The attribute values that had changed and were saved. 22 | */ 23 | public $changedAttributes; 24 | } 25 | -------------------------------------------------------------------------------- /framework/db/IntegrityException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class IntegrityException extends Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName() 22 | { 23 | return 'Integrity constraint violation'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /framework/db/StaleObjectException.php: -------------------------------------------------------------------------------- 1 | 12 | * @since 2.0 13 | */ 14 | class StaleObjectException extends Exception 15 | { 16 | /** 17 | * @return string the user-friendly name of this exception 18 | */ 19 | public function getName() 20 | { 21 | return 'Stale Object Exception'; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /framework/db/mssql/TableSchema.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class TableSchema extends \yii\db\TableSchema 17 | { 18 | /** 19 | * @var string name of the catalog (database) that this table belongs to. 20 | * Defaults to null, meaning no catalog (or the current database). 21 | */ 22 | public $catalogName; 23 | } 24 | -------------------------------------------------------------------------------- /framework/grid/GridViewAsset.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class GridViewAsset extends AssetBundle 19 | { 20 | public $sourcePath = '@yii/assets'; 21 | public $js = [ 22 | 'yii.gridView.js', 23 | ]; 24 | public $depends = [ 25 | 'yii\web\YiiAsset', 26 | ]; 27 | } 28 | -------------------------------------------------------------------------------- /framework/helpers/ArrayHelper.php: -------------------------------------------------------------------------------- 1 | 15 | * @since 2.0 16 | */ 17 | class ArrayHelper extends BaseArrayHelper 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /framework/helpers/Console.php: -------------------------------------------------------------------------------- 1 | 15 | * @since 2.0 16 | */ 17 | class Console extends BaseConsole 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /framework/helpers/FileHelper.php: -------------------------------------------------------------------------------- 1 | 14 | * @author Alex Makarov 15 | * @since 2.0 16 | */ 17 | class FileHelper extends BaseFileHelper 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /framework/helpers/FormatConverter.php: -------------------------------------------------------------------------------- 1 | 16 | * @author Enrica Ruedin 17 | * @since 2.0 18 | */ 19 | class FormatConverter extends BaseFormatConverter 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /framework/helpers/Inflector.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Inflector extends BaseInflector 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /framework/helpers/Json.php: -------------------------------------------------------------------------------- 1 | 15 | * @since 2.0 16 | */ 17 | class Json extends BaseJson 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /framework/helpers/StringHelper.php: -------------------------------------------------------------------------------- 1 | 14 | * @author Alex Makarov 15 | * @since 2.0 16 | */ 17 | class StringHelper extends BaseStringHelper 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /framework/helpers/Url.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Url extends BaseUrl 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /framework/rbac/Permission.php: -------------------------------------------------------------------------------- 1 | 12 | * @since 2.0 13 | */ 14 | class Permission extends Item 15 | { 16 | /** 17 | * @inheritdoc 18 | */ 19 | public $type = self::TYPE_PERMISSION; 20 | } 21 | -------------------------------------------------------------------------------- /framework/rbac/Role.php: -------------------------------------------------------------------------------- 1 | 12 | * @since 2.0 13 | */ 14 | class Role extends Item 15 | { 16 | /** 17 | * @inheritdoc 18 | */ 19 | public $type = self::TYPE_ROLE; 20 | } 21 | -------------------------------------------------------------------------------- /framework/validators/PunycodeAsset.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class PunycodeAsset extends AssetBundle 19 | { 20 | public $sourcePath = '@bower/punycode'; 21 | public $js = [ 22 | 'punycode.js', 23 | ]; 24 | } 25 | -------------------------------------------------------------------------------- /framework/validators/SafeValidator.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class SafeValidator extends Validator 17 | { 18 | /** 19 | * @inheritdoc 20 | */ 21 | public function validateAttribute($model, $attribute) 22 | { 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /framework/web/JqueryAsset.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class JqueryAsset extends AssetBundle 17 | { 18 | public $sourcePath = '@bower/jquery/dist'; 19 | public $js = [ 20 | 'jquery.js', 21 | ]; 22 | } 23 | -------------------------------------------------------------------------------- /framework/web/ResponseFormatterInterface.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | interface ResponseFormatterInterface 17 | { 18 | /** 19 | * Formats the specified response. 20 | * @param Response $response the response to be formatted. 21 | */ 22 | public function format($response); 23 | } 24 | -------------------------------------------------------------------------------- /framework/web/YiiAsset.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class YiiAsset extends AssetBundle 17 | { 18 | public $sourcePath = '@yii/assets'; 19 | public $js = [ 20 | 'yii.js', 21 | ]; 22 | public $depends = [ 23 | 'yii\web\JqueryAsset', 24 | ]; 25 | } 26 | -------------------------------------------------------------------------------- /framework/widgets/ActiveFormAsset.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class ActiveFormAsset extends AssetBundle 17 | { 18 | public $sourcePath = '@yii/assets'; 19 | public $js = [ 20 | 'yii.activeForm.js', 21 | ]; 22 | public $depends = [ 23 | 'yii\web\YiiAsset', 24 | ]; 25 | } 26 | -------------------------------------------------------------------------------- /framework/widgets/PjaxAsset.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class PjaxAsset extends AssetBundle 19 | { 20 | public $sourcePath = '@bower/yii2-pjax'; 21 | public $js = [ 22 | 'jquery.pjax.js', 23 | ]; 24 | public $depends = [ 25 | 'yii\web\YiiAsset', 26 | ]; 27 | } 28 | -------------------------------------------------------------------------------- /framework/yii.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | rem ------------------------------------------------------------- 4 | rem Yii command line bootstrap script for Windows. 5 | rem 6 | rem @author Qiang Xue 7 | rem @link http://www.yiiframework.com/ 8 | rem @copyright Copyright (c) 2008 Yii Software LLC 9 | rem @license http://www.yiiframework.com/license/ 10 | rem ------------------------------------------------------------- 11 | 12 | @setlocal 13 | 14 | set YII_PATH=%~dp0 15 | 16 | if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe 17 | 18 | "%PHP_COMMAND%" "%YII_PATH%yii" %* 19 | 20 | @endlocal 21 | -------------------------------------------------------------------------------- /tests/unit/.gitignore: -------------------------------------------------------------------------------- 1 | /runtime/cache/* 2 | /data/config.local.php -------------------------------------------------------------------------------- /tests/unit/assets/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !/coveralls/.gitkeep 4 | -------------------------------------------------------------------------------- /tests/unit/data/ar/ActiveRecord.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class ActiveRecord extends \yii\db\ActiveRecord 17 | { 18 | public static $db; 19 | 20 | public static function getDb() 21 | { 22 | return self::$db; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /tests/unit/data/ar/Cat.php: -------------------------------------------------------------------------------- 1 | 15 | * @since 2.0 16 | */ 17 | class Cat extends Animal 18 | { 19 | 20 | /** 21 | * 22 | * @param self $record 23 | * @param array $row 24 | */ 25 | public static function populateRecord($record, $row) 26 | { 27 | parent::populateRecord($record, $row); 28 | 29 | $record->does = 'meow'; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/unit/data/ar/CustomerQuery.php: -------------------------------------------------------------------------------- 1 | andWhere('status=1'); 15 | 16 | return $this; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/unit/data/ar/Dog.php: -------------------------------------------------------------------------------- 1 | 15 | * @since 2.0 16 | */ 17 | class Dog extends Animal 18 | { 19 | 20 | /** 21 | * 22 | * @param self $record 23 | * @param array $row 24 | */ 25 | public static function populateRecord($record, $row) 26 | { 27 | parent::populateRecord($record, $row); 28 | 29 | $record->does = 'bark'; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/unit/data/ar/Item.php: -------------------------------------------------------------------------------- 1 | hasOne(Category::className(), ['id' => 'category_id']); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /tests/unit/data/ar/NullValues.php: -------------------------------------------------------------------------------- 1 | hasOne(Order::className(), ['id' => 'order_id']); 23 | } 24 | 25 | public function getItem() 26 | { 27 | return $this->hasOne(Item::className(), ['id' => 'item_id']); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/unit/data/ar/OrderItemWithNullFK.php: -------------------------------------------------------------------------------- 1 | 4 | */ 5 | 6 | namespace yiiunit\data\ar; 7 | 8 | /** 9 | * Class Profile 10 | * 11 | * @property integer $id 12 | * @property string $description 13 | * 14 | */ 15 | class Profile extends ActiveRecord 16 | { 17 | public static function tableName() 18 | { 19 | return 'profile'; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/unit/data/ar/elasticsearch/CustomerQuery.php: -------------------------------------------------------------------------------- 1 | andWhere(['status' => 1]); 15 | 16 | return $this; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/unit/data/ar/elasticsearch/OrderItemWithNullFK.php: -------------------------------------------------------------------------------- 1 | andWhere(['status' => 2]); 15 | 16 | return $this; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/unit/data/ar/mongodb/Item.php: -------------------------------------------------------------------------------- 1 | andWhere(['status' => 2]); 15 | 16 | return $this; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/unit/data/ar/redis/ActiveRecord.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class ActiveRecord extends \yii\redis\ActiveRecord 17 | { 18 | public static $db; 19 | 20 | public static function getDb() 21 | { 22 | return self::$db; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /tests/unit/data/ar/redis/CustomerQuery.php: -------------------------------------------------------------------------------- 1 | andWhere(['status' => 1]); 15 | 16 | return $this; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/unit/data/ar/redis/Item.php: -------------------------------------------------------------------------------- 1 | hasOne(Order::className(), ['id' => 'order_id']); 20 | } 21 | 22 | public function getItem() 23 | { 24 | return $this->hasOne(Item::className(), ['id' => 'item_id']); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/unit/data/ar/redis/OrderItemWithNullFK.php: -------------------------------------------------------------------------------- 1 | $this, 19 | 'link' => ['id' => 'id'], 20 | 'multiple' => false, 21 | ]); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /tests/unit/data/ar/sphinx/ArticleIndexQuery.php: -------------------------------------------------------------------------------- 1 | andWhere('author_id=1'); 15 | 16 | return $this; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/unit/data/ar/sphinx/ItemDb.php: -------------------------------------------------------------------------------- 1 | 'Lennon'], 19 | [['lastName'], 'required'], 20 | [['underscore_style'], 'yii\captcha\CaptchaValidator'], 21 | [['test'], 'required', 'when' => function($model) { return $model->firstName === 'cebe'; }], 22 | ]; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /tests/unit/data/console/controllers/fixtures/FirstFixture.php: -------------------------------------------------------------------------------- 1 | generator->sentence($nbWords); 13 | return mb_substr($sentence, 0, mb_strlen($sentence) - 1); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /tests/unit/data/extensions/faker/templates/book.php: -------------------------------------------------------------------------------- 1 | $faker->title, 9 | ]; 10 | -------------------------------------------------------------------------------- /tests/unit/data/extensions/faker/templates/profile.php: -------------------------------------------------------------------------------- 1 | getSecurity(); 8 | 9 | return [ 10 | 'address' => $faker->address, 11 | 'phone' => $faker->phoneNumber, 12 | 'first_name' => $faker->firstName, 13 | ]; 14 | -------------------------------------------------------------------------------- /tests/unit/data/extensions/faker/templates/user.php: -------------------------------------------------------------------------------- 1 | getSecurity(); 8 | 9 | return [ 10 | 'username' => $faker->userName, 11 | 'email' => $faker->email, 12 | 'auth_key' => $security->generateRandomString(), 13 | 'created_at' => time(), 14 | 'updated_at' => time(), 15 | ]; 16 | -------------------------------------------------------------------------------- /tests/unit/data/i18n/messages/de-DE/test.php: -------------------------------------------------------------------------------- 1 | 'Der Hund rennt schnell.', 7 | 'His speed is about {n} km/h.' => 'Seine Geschwindigkeit beträgt {n} km/h.', 8 | 'His name is {name} and his speed is about {n, number} km/h.' => 'Er heißt {name} und ist {n, number} km/h schnell.', 9 | ]; 10 | -------------------------------------------------------------------------------- /tests/unit/data/i18n/messages/de/test.php: -------------------------------------------------------------------------------- 1 | 'Hallo Welt!', 7 | ]; 8 | -------------------------------------------------------------------------------- /tests/unit/data/i18n/messages/en-US/test.php: -------------------------------------------------------------------------------- 1 | 'Der Hund rennt schell.', 7 | ]; 8 | -------------------------------------------------------------------------------- /tests/unit/data/i18n/messages/ru/test.php: -------------------------------------------------------------------------------- 1 | 'Собака бегает быстро.', 7 | 'There {n, plural, =0{no cats} =1{one cat} other{are # cats}} on lying on the sofa!' => 'На диване {n, plural, =0{нет кошек} =1{лежит одна кошка} one{лежит # кошка} few{лежит # кошки} many{лежит # кошек} other{лежит # кошки}}!', 8 | ]; 9 | -------------------------------------------------------------------------------- /tests/unit/data/i18n/test.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/tests/unit/data/i18n/test.mo -------------------------------------------------------------------------------- /tests/unit/data/imagine/GothamRnd-Light.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/tests/unit/data/imagine/GothamRnd-Light.otf -------------------------------------------------------------------------------- /tests/unit/data/imagine/large.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/tests/unit/data/imagine/large.jpg -------------------------------------------------------------------------------- /tests/unit/data/imagine/xparent.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CraryPrimitiveMan/yii2-2.0.3-annotated/ba8f7baa3e3a81b1f05b00466ad8fdaa641ba6ab/tests/unit/data/imagine/xparent.gif -------------------------------------------------------------------------------- /tests/unit/data/travis/apc-setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | if [ "$(expr "$TRAVIS_PHP_VERSION" "<" "5.5")" -eq 1 ]; then 4 | echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini 5 | echo "apc.enable_cli = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini 6 | else 7 | echo "Not installing APC as it is not available in PHP 5.5 anymore." 8 | fi -------------------------------------------------------------------------------- /tests/unit/data/travis/cubrid-solo.rb: -------------------------------------------------------------------------------- 1 | file_cache_path "/tmp/chef-solo" 2 | data_bag_path "/tmp/chef-solo/data_bags" 3 | encrypted_data_bag_secret "/tmp/chef-solo/data_bag_key" 4 | cookbook_path [ "/tmp/chef-solo/cookbooks" ] 5 | role_path "/tmp/chef-solo/roles" -------------------------------------------------------------------------------- /tests/unit/data/travis/init-apps.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | if (php --version | grep -i HipHop > /dev/null); then 4 | echo "skipping application init on HHVM" 5 | else 6 | 7 | mysql -e 'CREATE DATABASE yii2_advanced_tests;'; 8 | cd apps/advanced/tests/codeception/bin 9 | php yii migrate --interactive=0 10 | cd ../../../../.. 11 | fi 12 | -------------------------------------------------------------------------------- /tests/unit/data/travis/memcache-setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | if (php --version | grep -i HipHop > /dev/null); then 4 | echo "skipping memcache on HHVM" 5 | else 6 | mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc 7 | echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini 8 | echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini 9 | fi 10 | -------------------------------------------------------------------------------- /tests/unit/data/travis/mongodb-setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # install mongodb 4 | 5 | if (php --version | grep -i HipHop > /dev/null); then 6 | echo "mongodb does not work on HHVM currently, skipping" 7 | exit 0 8 | else 9 | echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini 10 | fi 11 | 12 | echo "MongoDB Server version:" 13 | mongod --version 14 | 15 | echo "MongoDB PHP Extension version:" 16 | php -i |grep mongo -4 |grep -2 Version 17 | 18 | # enable text search 19 | mongo --eval 'db.adminCommand( { setParameter: true, textSearchEnabled : true})' 20 | 21 | cat /etc/mongodb.conf 22 | -------------------------------------------------------------------------------- /tests/unit/data/travis/sphinx-setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | SCRIPT=$(readlink -f "$0") 3 | CWD=$(dirname "$SCRIPT") 4 | 5 | # make dir that is used in sphinx config 6 | mkdir -p sphinx 7 | sed -i s\~SPHINX_BASE_DIR~$PWD/sphinx~g $CWD/../sphinx/sphinx.conf 8 | 9 | # Setup source database 10 | mysql -D yiitest -u travis < $CWD/../sphinx/source.sql 11 | 12 | # setup test Sphinx indexes: 13 | indexer --config $CWD/../sphinx/sphinx.conf --all 14 | 15 | # run searchd: 16 | searchd --config $CWD/../sphinx/sphinx.conf 17 | -------------------------------------------------------------------------------- /tests/unit/data/validators/models/ValidatorTestMainModel.php: -------------------------------------------------------------------------------- 1 | hasMany(ValidatorTestRefModel::className(), ['ref' => 'id']); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tests/unit/data/validators/models/ValidatorTestRefModel.php: -------------------------------------------------------------------------------- 1 | hasOne(ValidatorTestMainModel::className(), ['id' => 'ref']); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/unit/data/views/layout.php: -------------------------------------------------------------------------------- 1 | 5 | beginPage(); ?> 6 | 7 | 8 | 9 | Test 10 | head(); ?> 11 | 12 | 13 | beginBody(); ?> 14 | 15 | 16 | 17 | endBody(); ?> 18 | 19 | 20 | endPage(); ?> 21 | -------------------------------------------------------------------------------- /tests/unit/data/views/rawlayout.php: -------------------------------------------------------------------------------- 1 | beginPage(); ?>1head(); ?>2beginBody(); ?>3endBody(); ?>4endPage(); ?> 4 | -------------------------------------------------------------------------------- /tests/unit/data/views/simple.php: -------------------------------------------------------------------------------- 1 | This is a damn simple view file. 2 | -------------------------------------------------------------------------------- /tests/unit/data/web/assets/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /tests/unit/data/web/data.txt: -------------------------------------------------------------------------------- 1 | 12ёжик3456798áèabcdefghijklmnopqrstuvwxyz!"§$%&/(ёжик)=? -------------------------------------------------------------------------------- /tests/unit/extensions/authclient/signature/HmacSha1Test.php: -------------------------------------------------------------------------------- 1 | generateSignature($baseString, $key); 18 | $this->assertNotEmpty($signature, 'Unable to generate signature!'); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tests/unit/extensions/authclient/signature/PlainTextTest.php: -------------------------------------------------------------------------------- 1 | generateSignature($baseString, $key); 18 | $this->assertNotEmpty($signature, 'Unable to generate signature!'); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tests/unit/extensions/bootstrap/BootstrapTestCase.php: -------------------------------------------------------------------------------- 1 | mockWebApplication(); 14 | } 15 | } -------------------------------------------------------------------------------- /tests/unit/extensions/mongodb/console/controllers/EchoMigrateController.php: -------------------------------------------------------------------------------- 1 | {$this->title} -------------------------------------------------------------------------------- /tests/unit/extensions/smarty/views/extends1.tpl: -------------------------------------------------------------------------------- 1 | Hello, I'm inheritance test! 2 | 3 | {block name=test} 4 | extends1 block 5 | {/block} -------------------------------------------------------------------------------- /tests/unit/extensions/smarty/views/extends2.tpl: -------------------------------------------------------------------------------- 1 | {extends file="@yiiunit/extensions/smarty/views/extends1.tpl"} 2 | 3 | {block name=test} 4 | extends2 block 5 | {/block} -------------------------------------------------------------------------------- /tests/unit/extensions/smarty/views/extends3.tpl: -------------------------------------------------------------------------------- 1 | {extends file="@yiiunit/extensions/smarty/views/extends1.tpl"} 2 | 3 | {block name=test} 4 | extends3 block 5 | {/block} -------------------------------------------------------------------------------- /tests/unit/extensions/smarty/views/form.tpl: -------------------------------------------------------------------------------- 1 | {use class='yii\widgets\ActiveForm' type='block'} 2 | {ActiveForm assign='form' id='login-form' action='/form-handler' options=['class' => 'form-horizontal']} 3 | {$form->field($model, 'firstName')} 4 |
5 |
6 | 7 |
8 |
9 | {/ActiveForm} -------------------------------------------------------------------------------- /tests/unit/extensions/smarty/views/layout.tpl: -------------------------------------------------------------------------------- 1 | {use class="yii\web\JqueryAsset"} 2 | {JqueryAsset::register($this)|void} 3 | {$this->beginPage()} 4 | 5 | 6 | 7 | 8 | {$this->title|escape} 9 | {$this->head()} 10 | 11 | 12 | {$this->beginBody()} 13 | body 14 | {$this->endBody()} 15 | 16 | {$this->endPage()} -------------------------------------------------------------------------------- /tests/unit/extensions/smarty/views/simple.tpl: -------------------------------------------------------------------------------- 1 | simple view without parameters. -------------------------------------------------------------------------------- /tests/unit/extensions/smarty/views/use.tpl: -------------------------------------------------------------------------------- 1 | {use class='yii\helpers\Html'} 2 | {use class='yii\bootstrap\Nav' type='function'} 3 | {use class='yii\bootstrap\NavBar' type='block'} 4 | 5 | {NavBar brandLabel=$app->name brandUrl=$app->homeUrl 6 | options=['class' => 'test']} 7 | 8 | {Nav options=['class' => 'test2'] items=[ 9 | ['label' => 'Home', 'url' => 'http://example.com/'] 10 | ]} 11 | 12 | {/NavBar} 13 | -------------------------------------------------------------------------------- /tests/unit/extensions/smarty/views/view.tpl: -------------------------------------------------------------------------------- 1 | test view {$param}. -------------------------------------------------------------------------------- /tests/unit/extensions/twig/views/calls.twig: -------------------------------------------------------------------------------- 1 | {{ json_encode('echo') | raw }} 2 | {{ void(json_encode('silence')) }} 3 | 4 | {% set var = json_encode('variable') %} 5 | {{ json_encode(var) | raw }} -------------------------------------------------------------------------------- /tests/unit/extensions/twig/views/changeTitle.twig: -------------------------------------------------------------------------------- 1 | {{ set(this, 'title', 'New title') }} 2 | 3 | {{ this.title }} -------------------------------------------------------------------------------- /tests/unit/extensions/twig/views/comments.twig: -------------------------------------------------------------------------------- 1 | {# DEFAULT_TWIG_COMMENT #} 2 | {* CUSTOM_LEXER_TWIG_COMMENT *} -------------------------------------------------------------------------------- /tests/unit/extensions/twig/views/extends1.twig: -------------------------------------------------------------------------------- 1 | Hello, I'm inheritance test! 2 | 3 | {% block test %} 4 | extends1 block 5 | {% endblock %} -------------------------------------------------------------------------------- /tests/unit/extensions/twig/views/extends2.twig: -------------------------------------------------------------------------------- 1 | {% extends "extends1.twig" %} 2 | 3 | {% block test %} 4 | extends2 block 5 | {% endblock %} -------------------------------------------------------------------------------- /tests/unit/extensions/twig/views/extends3.twig: -------------------------------------------------------------------------------- 1 | {% extends "@yiiunit/extensions/twig/views/extends1.twig" %} 2 | 3 | {% block test %} 4 | extends3 block 5 | {% endblock %} -------------------------------------------------------------------------------- /tests/unit/extensions/twig/views/form.twig: -------------------------------------------------------------------------------- 1 | {{ use('yii/widgets/ActiveForm') }} 2 | 3 | {% set form = active_form_begin({ 4 | 'id': 'login-form', 5 | 'action' : '/form-handler', 6 | 'options': { 7 | 'class': 'form-horizontal', 8 | } 9 | }) %} 10 | {{ form.field(model, 'firstName') | raw }} 11 |
12 |
13 | {{ html.submitButton('Login', { 14 | 'class': 'btn btn-primary', 15 | }) | raw }} 16 |
17 |
18 | {{ active_form_end() }} -------------------------------------------------------------------------------- /tests/unit/extensions/twig/views/layout.twig: -------------------------------------------------------------------------------- 1 | {{ use('yii/web/JqueryAsset') }} 2 | {{ register_jquery_asset() }} 3 | {{ begin_page() }} 4 | 5 | 6 | 7 | 8 | {{ html.encode(this.title) }} 9 | {{ head() }} 10 | 11 | 12 | {{ begin_body() }} 13 | body 14 | {{ end_body() }} 15 | 16 | {{ end_page() }} -------------------------------------------------------------------------------- /tests/unit/extensions/twig/views/nulls.twig: -------------------------------------------------------------------------------- 1 | {{ order.customer }} -------------------------------------------------------------------------------- /tests/unit/framework/console/controllers/EchoMigrateController.php: -------------------------------------------------------------------------------- 1 | getConnection(false); 17 | 18 | $sql = 'SELECT [[id]], [[t.name]] FROM {{customer}} t'; 19 | $command = $db->createCommand($sql); 20 | $this->assertEquals("SELECT `id`, `t`.`name` FROM `customer` t", $command->sql); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/unit/framework/db/sqlite/SqliteQueryTest.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Bar extends Object 17 | { 18 | public $qux; 19 | 20 | public function __construct(QuxInterface $qux, $config = []) 21 | { 22 | $this->qux = $qux; 23 | parent::__construct($config); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /tests/unit/framework/di/stubs/Foo.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Foo extends Object 17 | { 18 | public $bar; 19 | 20 | public function __construct(Bar $bar, $config = []) 21 | { 22 | $this->bar = $bar; 23 | parent::__construct($config); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /tests/unit/framework/di/stubs/Qux.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Qux extends Object implements QuxInterface 17 | { 18 | public $a; 19 | 20 | public function __construct($a = 1, $config = []) 21 | { 22 | $this->a = $a; 23 | parent::__construct($config); 24 | } 25 | 26 | public function quxMethod() 27 | { 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/unit/framework/di/stubs/QuxInterface.php: -------------------------------------------------------------------------------- 1 | 12 | * @since 2.0 13 | */ 14 | interface QuxInterface 15 | { 16 | function quxMethod(); 17 | } 18 | -------------------------------------------------------------------------------- /tests/unit/framework/helpers/FallbackInflector.php: -------------------------------------------------------------------------------- 1 | markTestIncomplete(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/unit/framework/log/MySQLTargetTest.php: -------------------------------------------------------------------------------- 1 | $this->getConnection(), 21 | 'cache' => new FileCache(['cachePath' => '@yiiunit/runtime/cache']), 22 | ]); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /tests/unit/framework/rbac/MySQLManagerTest.php: -------------------------------------------------------------------------------- 1 | [ 5 | 'email' => 'customer1@example.com', 6 | 'name' => 'customer1', 7 | 'address' => 'address1', 8 | 'status' => 1, 9 | ], 10 | 'customer2' => [ 11 | 'email' => 'customer2@example.com', 12 | 'name' => 'customer2', 13 | 'address' => 'address2', 14 | 'status' => 2, 15 | ], 16 | ]; 17 | -------------------------------------------------------------------------------- /tests/unit/framework/test/data/customer.php: -------------------------------------------------------------------------------- 1 | [ 5 | 'email' => 'customer1@example.com', 6 | 'name' => 'customer1', 7 | 'address' => 'address1', 8 | 'status' => 1, 9 | ], 10 | 'customer2' => [ 11 | 'email' => 'customer2@example.com', 12 | 'name' => 'customer2', 13 | 'address' => 'address2', 14 | 'status' => 2, 15 | ], 16 | ]; 17 | -------------------------------------------------------------------------------- /tests/unit/framework/validators/ExistValidatorDriverTests/ExistValidatorPostgresTest.php: -------------------------------------------------------------------------------- 1 | id = $id; 14 | $this->title = $title; 15 | } 16 | } -------------------------------------------------------------------------------- /tests/unit/runtime/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !/coveralls/.gitkeep 4 | -------------------------------------------------------------------------------- /tests/web/app/index.php: -------------------------------------------------------------------------------- 1 | run(); 7 | -------------------------------------------------------------------------------- /tests/web/app/protected/config/main.php: -------------------------------------------------------------------------------- 1 |