2212 Commits

Author SHA1 Message Date
6ec6f8d76c moved include file logic to separate method 2017-06-02 13:35:45 +02:00
5288577221 make migrationPath accept an array 2017-06-02 13:35:45 +02:00
cb9462b224 Added support for specifying aliases for migrationNamespaces
This is used to specify pathes to migrations that do not have
namespaces.

While not directly supported by the migration command provideded by the
framework, these migrations exist in a lot of extensions because custom implementations
of migration controllers out of the framework were using this approach
to load multiple migrations from multiple paths.

Even the framework itself currently ships non-namespaced migrations:

- 17a1d91e4a/framework/rbac/migrations/m140506_102106_rbac_init.php
- 17a1d91e4a/framework/caching/migrations/m150909_153426_cache_init.php
- 17a1d91e4a/framework/log/migrations/m141106_185632_log_init.php

This change allows existing applications to adopt the new namespace-based approach
while keeping existing migrations. While it would be possible to add
namespaces to migrations in the application itself, it is not easily possible
to add namespaces to migrations that come from external sources like
extensions.
2017-06-02 13:34:34 +02:00
a1f396c5d8 improved docs 2017-05-31 17:46:34 +02:00
339972fb34 simplified guide example 2017-05-31 17:46:34 +02:00
18bb002c99 Document queryParams in the authorization guide 2017-05-31 17:46:34 +02:00
137a936a60 Merge pull request #14215 from ihipop/feature/add_doc_for_issue_#8420 [skip ci]
Add doc for issue #8420
2017-05-31 10:59:18 +03:00
7d209b4143 Adjusted text,add some adivse [skip ci] 2017-05-31 11:20:18 +08:00
ed0c755f7c Adjusted text [skip ci] 2017-05-30 17:49:18 +03:00
85294ab4e3 Add migration file example for DbSession (#14227) [skip ci]
Creating a `char` primaryKey in a migration is non-obvious. Used solution from this [issue comment](https://github.com/yiisoft/yii2/issues/10889#issuecomment-302995086).
2017-05-29 11:41:00 +05:00
57a448d0f8 Adjusted text [skip ci] 2017-05-28 15:53:45 +03:00
f7e3d980ea Adjusted text [skip ci] 2017-05-28 15:52:31 +03:00
f98e260493 Adjusted text [skip ci] 2017-05-28 15:51:31 +03:00
974a1eeb48 Adjusted text [skip ci] 2017-05-28 15:48:27 +03:00
c1e6e6da62 Adjusted typo text [skip ci] 2017-05-26 17:33:07 +08:00
2711eb5722 MySql -> MySQL typo 2017-05-26 17:20:56 +08:00
d0a5372170 Adjusted text [skip ci] 2017-05-26 12:17:33 +03:00
6a9a255d06 typo 2017-05-26 17:13:52 +08:00
d82b4fa03b add doc for issue #8420
#8420
2017-05-26 16:58:19 +08:00
fcfcdbdc34 advanced example on filter validator
fixes #4284
2017-05-23 23:21:03 +02:00
8373228228 added namespace example to the autoload guide 2017-05-17 22:38:25 +02:00
618f61fafe Update db-migrations.md (#14113) [skip ci]
I made a typo. Sorry. The command migration-rbac, migrationPath property already exists.
2017-05-04 22:23:39 +03:00
6a28353a97 Update db-migrations.md (#14109) [skip ci]
By default, the class BaseMigrateController property migrationPath is assigned the value '@app/migrations'. In the method getNewMigrations() is the conversion migrationNamescpaces in the path to the file and merges it all into a single array along with the path migrationPath. If the project for migration module is a separate table in the database, all migration came from migrationPath are not initialized and therefore try to migrate. Therefore, it is necessary to specify the property 'migrationPath' => null.
2017-05-04 16:03:15 +02:00
2d28b585a0 Merge branch 'master' into 13614-add-a-failing-test-for-url-rule 2017-04-27 22:07:55 +02:00
4dbcc78559 Update runtime-routing.md 2017-04-26 11:41:07 +02:00
1bf2f160d0 param → parameter [skip ci] 2017-04-26 12:08:57 +03:00
5e42b9e142 Added note clarifying that load function clears fixture data [skip ci] 2017-04-20 21:19:19 +03:00
c35ddec09a Update composer fxp plugin version in docs and travis scripts 2017-04-19 02:55:31 +03:00
400c531d95 Tiny documentation fix [skip ci] (#13998) 2017-04-17 15:51:09 +03:00
85cc75aaa2 docs/guide/input-multiple-models: added a note on avoiding validating the same input data with the same rules more than once (#13995) [skip ci] 2017-04-17 02:07:59 +03:00
e81ebc0fba Tweaked verbiage slightly [ci skip] 2017-04-14 13:41:07 -06:00
519753d868 Added missing parts of disabling CSRF validation doc [skip ci] (#13966) 2017-04-12 01:55:13 +03:00
9445e5508b Fixes #10675: Added docs for disabling CSRF validation in standalone actions 2017-04-11 02:05:36 +03:00
9c8b289116 Incorrect use case of Datepicker widget (#13903) [skip ci] 2017-04-02 22:22:10 +03:00
f5f31c7fe1 Fixes #13864: Added info about configuring sub-rules of yii\rest\UrlRule [skip ci] 2017-03-28 20:10:16 +03:00
35f7c61f77 Added tip about preferring separate form models for any non-trivial cases [skip ci] 2017-03-15 10:15:13 +03:00
ee644ee997 Added more composer autoload optimization strategies to performance tuning guide [skip ci] 2017-03-13 13:25:56 +03:00
d37b82d505 Added tip about using PSR-3 loggers to docs [skip ci] 2017-03-09 02:15:40 +03:00
e448ed7444 Update docs 2017-03-01 12:22:53 +01:00
5727699445 Aadded OWASP references to security guide (#13667) [skip ci]
Currently security guide is very thrifty with information on what a topic is about. So for beginners it is not clear why something like CSRF or XSS protection is even needed.

I added a few reference links to allow reading about more background behind the topics.
2017-02-27 11:31:04 +03:00
17d03977a0 Fixed mistake in guide code for list retrieval from the DB (#13634) 2017-02-24 00:44:50 +03:00
50927d0751 Enhanced core-validators docs
Closes #13485
2017-02-21 22:36:26 +02:00
30b7fc8dc1 Fixes #13577: yii\db\QueryBuilder::truncateTable should work consistent over all databases 2017-02-20 23:38:50 +03:00
2e32e97c02 fix anchor
http://www.yiiframework.com/doc-2.0/guide-db-migrations.html#creating-migrations
2017-02-16 23:30:45 +03:00
39d3316e65 Rereferenced OCI PDO emulation from docs [skip ci] 2017-02-15 11:58:45 +03:00
7db178d8bb Fixes #13526: added reference to loading default values from schema to DefaultValueValidator section of validation guide [skip ci] 2017-02-14 20:50:26 +03:00
bf13f01b85 fixed some guide issues 2017-02-10 23:30:53 +01:00
7e8d9c5c5f added note about protocol relative URL pattern to the guide 2017-02-08 12:28:07 +01:00
93fbc55b23 Added edge case handling to aggregation example in docs [skip ci]
See https://github.com/yiisoft/yii2/issues/12491#issuecomment-276593948
2017-02-02 20:47:22 +03:00
e99deef49c docs/guide/structure-assets.md minor fixes [ci skip] (#13498) 2017-02-02 17:50:29 +03:00