2139 Commits

Author SHA1 Message Date
c3c6035117 updated images gii (#13244) [skip ci] 2016-12-19 16:10:05 +03:00
3624eae23f Merge pull request #13217 from yiisoft/throwable
Catch `\Throwable` in critical places
2016-12-18 19:53:27 +02:00
405c8b7e43 Merge pull request #13188 from yiisoft/guide-client-scripts
Edited and extended Guide section about client scripts
2016-12-18 19:21:43 +02:00
cb52c42cf5 more details about PHP 5 and 7 compatibility regarding Throwable 2016-12-17 00:43:48 +01:00
a3b6dfbb7b Catch \Throwable in critical places
Added catch `\Throwable` to be compatible with PHP7.
Added it in cases where object state needs to be kept consistent.

Mainly on transactions but also some other places where some values are
reset before exiting.

Most of them could probably be refactored by using `finally` in 2.1, as
that requires PHP 5.5.

fixes #12619
2016-12-16 02:20:02 +01:00
837b33767c Fixes #11697: Added filterHaving(), andFilterHaving() and orFilterHaving() to yii\db\Query
Signed-off-by: Alexander Makarov <sam@rmcreative.ru>
2016-12-14 23:58:04 +03:00
7be8ccbb41 All words in h3 in docs must start with capital letter (#13207) 2016-12-14 12:44:15 +01:00
a1581329cf Fixes #13183: Docs for working with separated migrations (#13201) 2016-12-14 13:19:43 +03:00
b13940c31d Minor syntax and style fixes 2016-12-13 02:39:05 +03:00
b6e250857c Edited and extended Guide section about client scripts
This section had the "under development note" for a long time and was
lacking a lot of information.
It should also contain info about `yii.js` but that is to be added in
another PR.
2016-12-13 00:07:45 +01:00
bd85b7ced2 Closes #6242: Access to validator in inline validation (#13027)
* Closes #6242: Access to validator in inline validation

* Updated PHPDoc according to PR review [skip ci]

* Imrpoved PHPDoc, updated guide info [skip ci]

* Fixes related with PR review

* Corrected CHANGELOG [skip ci]

* Update input-validation.md

added version info
2016-12-08 23:29:53 +01:00
f5beaf3edf Make validator getClientOptions public
This allows implementing custom client-side validation
without extending every validator.

Fixes #11163
close #13145
2016-12-08 01:30:36 +01:00
0e5efb91eb Replaced links to non-existing widget demos with links to API docs and guide [skip ci] 2016-12-07 18:59:48 +03:00
76e253e140 yii\validators\Validator - added separate methods for client-side validation options
Closes #11163
2016-12-05 22:33:49 +02:00
eb6ea11931 Fix docs about table prefixes (#13127)
* fixes #8354 to improve docs on table prefixes

* accents

* patched silverfires comments

* Update db-active-record.md

improved wording and added link about quoting.

* fix link to DAO guide
2016-12-05 13:57:07 +01:00
9c1f892ecf Update concept-di-container.md
put code block into the list
2016-12-05 12:57:33 +01:00
72532fe910 Fixed code formatting in concept-di-container.md [skip-ci] (#13136) 2016-12-05 13:54:01 +03:00
d7436dea83 fixed urls in bash/zsh installation instructions 2016-12-04 13:17:38 +01:00
496310e7e3 fixed typo in security guide about namespace
backslash vs. slash
fixes #13132
2016-12-04 02:50:22 +01:00
c5a88ae0b5 Update security-authorization.md
fix namespace to fix #13125
2016-12-03 10:31:29 +01:00
35998449eb Add yii\filters\HostControl::$fallbackHostInfo (#13117) 2016-12-03 08:25:39 +02:00
4454d05410 Added ZSH completion, moved scripts to a separate directory 2016-12-03 00:36:40 +01:00
05b17ebb65 Added bash completion file for ./yii commands
This allows to auto-complete commands available by the `./yii`
executable on the bash by expanding the first argument with the TAB key.
E.g. Typing `./yii [TAB]` will list all commands. `./yii mig[TAB]` will
auto-complete to `./yii migrate` and tab after that will list all
migration sub-commands(actions).

fixes #475
2016-12-03 00:36:40 +01:00
437825be70 Implemented Container::setDependencies(), Container::setDefinitions
Closes #11758
Closes #13029
2016-12-02 15:08:24 +02:00
53a2a48f97 Update tutorial-i18n.md
to double quotes
2016-12-01 18:55:31 +01:00
9d9b800a57 Improve docs on i18n messages (#13107)
* start with improving doc

* updates

* fixes for @samdark review

* fixes after @cebe's review

* changes after @silverfire
2016-12-01 18:23:21 +01:00
7da77c3d5a created HostControl filter to prevent Host header attacks
fixes #13050
close #13063
2016-12-01 00:59:26 +01:00
b5b62e7a0f Fix name variable (ttl -> defaultDuration) (#13083) [skip ci] 2016-11-27 21:07:28 +03:00
a498dedb5c Added documentation about Host header attack (#13073)
* Added documentation about Host header attack

Added info about Host header attack (#13050) to the guide and the Request class.
When we introduce a filter or property to protect against this, these
sections should be updated to link to that option.
2016-11-26 21:57:52 +01:00
f1f357bad3 Documentation for Events updated 2016-11-26 12:19:45 +02:00
f4e54a1b5a Fixed typo in get parameter in docs [skip ci] (#13066) 2016-11-24 11:52:44 +03:00
db349527e7 fix typo in guide code block 2016-11-22 16:12:57 +01:00
8fec6555eb Merge pull request #13051 from w3lifer/patch-4
Typos
2016-11-20 12:25:33 +02:00
2bfc0ff853 improve message translation guide
issue #13052
2016-11-19 21:06:32 +01:00
bc61e4b498 Typos 2016-11-19 16:38:02 +03:00
6428fab406 Closes #9162: Added support of closures in value for attributes in yii\widgets\DetailView (#13013)
#9162: Added support of closures in `value` for attributes in `yii\widgets\DetailView`
2016-11-18 11:31:40 +03:00
60af0a56cf Closed #12778: Added docs for multiple attributes validation (#13005)
* Added docs for mutiple attributes validation

* Fixed typo in formatting [skip ci]

* More precise explanation about count of validator runs

* Corrected salary min in integer rule

* More strict check in when, additional h3 headers, loop alternative

* Added custom validator section

* Use more accurate phrase

* Block code formatting - php was missing [skip ci]

* Fixes related with PR review [skip ci]

* More fixes related with PR review, removed unnecessary @inheritdoc [skip ci]
2016-11-17 18:52:24 +01:00
17f3b8d8a6 Fixed Model::attributes of documentation (#13028) [skip ci] 2016-11-17 13:46:54 +03:00
65c488dd9e echo, die, *test*, *automated testing* (#13023) [skip ci] 2016-11-16 21:26:04 +03:00
556e9cf99b Updates after PR review (related #6809) 2016-11-14 23:53:09 +01:00
8df1017f42 Default cache ttl (duration) property (fixes #6809) 2016-11-14 23:53:09 +01:00
0d89bc5171 added example about alias for nesting joinWith calls
close #10878
2016-11-09 20:57:08 +01:00
9a6e6a21e0 Fixed formatting 2016-11-09 12:24:26 +03:00
5f8ec360ca fixing doc for list fields #7214 (#12922)
examples in doc for list fields
2016-11-09 10:03:03 +01:00
3c8d39e3f4 "$data" renamed to "$array" (#12935)
thanks
2016-11-07 21:33:17 +01:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
43ddcb4f92 Fixes #7182: with info about return statement 2016-11-04 22:42:11 +03:00
6ff2b3e8ab Fixes #9220: GridView::filterModel docs update (#12886) [skip ci] 2016-11-01 13:29:43 +03:00
4f89265fff Fixes #12748: Migration generator now tries to fetch reference column name for foreignKey from schema if it's not set explicitly 2016-11-01 02:02:16 +03:00
2ab41948a8 Change place of note about pluralize controller name (#12813) [skip ci] 2016-10-28 13:17:10 +03:00