Carsten Brandt
4735d4da6b
Update DynamicModel.php
...
added note about limitations, i.e. no scenarios -> no safe attributes -> no load().
8 years ago
Carsten Brandt
1d4eb072d3
readded comments to phpmd rules #13139
8 years ago
Bizley
5092c9666d
Code Climate PHPMD settings ( #13139 )
...
* codeclimate phpmd rulesets
* PHPMD ruleset
* phpmd_ruleset moved
* Delete phpmd_ruleset.xml
* ruleset moved
8 years ago
SilverFire - Dmitry Naumenko
cdaf5c86ef
Merge branch 'arogachev-11163-client-validate-options'
8 years ago
Alexey Rogachev
76e253e140
`yii\validators\Validator` - added separate methods for client-side validation options
...
Closes #11163
8 years ago
SilverFire - Dmitry Naumenko
0261a5498f
Simplified ListViewTest
8 years ago
SilverFire - Dmitry Naumenko
25eafa560e
Merge branch '11627-document-and-test-empty-listview' of git://github.com/mytskine/yii2 into mytskine-11627-document-and-test-empty-listview
...
Conflicts:
framework/widgets/BaseListView.php
tests/framework/widgets/ListViewTest.php
8 years ago
Boudewijn Vahrmeijer
7dac3ed1ca
Kirkhansen 9053 add radio button column ( #13126 )
...
* Added the RadioButtonColumn class and updated the changelog.
* - several enhancements:
- unit tests added
- changelog fixed
* Update CHANGELOG.md
* small markdown fixes
* fix travis: custom ID
8 years ago
Boudewijn Vahrmeijer
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
8 years ago
Carsten Brandt
9c1f892ecf
Update concept-di-container.md
...
put code block into the list
8 years ago
Evgeniy Tkachenko
72532fe910
Fixed code formatting in concept-di-container.md [skip-ci] ( #13136 )
8 years ago
Carsten Brandt
d7436dea83
fixed urls in bash/zsh installation instructions
8 years ago
Carsten Brandt
496310e7e3
fixed typo in security guide about namespace
...
backslash vs. slash
fixes #13132
8 years ago
Carsten Brandt
ce9e6fd6f9
disable codeclimate complaining about else statements
...
encouraging early return is good, but this check complains about every
single else statement in the code.
see https://github.com/yiisoft/yii2/pull/13126#issuecomment-264653343
8 years ago
Boudewijn Vahrmeijer
c5a88ae0b5
Update security-authorization.md
...
fix namespace to fix #13125
8 years ago
Robert Korulczyk
35998449eb
Add `yii\filters\HostControl::$fallbackHostInfo` ( #13117 )
8 years ago
Carsten Brandt
7fead4f011
Merge pull request #12959 from yiisoft/bash-completion
...
Added bash completion file for ./yii commands
8 years ago
Carsten Brandt
6f4dd06183
Merge pull request #12675 from yiisoft/unknown-command
...
Alternative implementation for Unknown command suggestions
8 years ago
Carsten Brandt
187c44e43e
implement suggestion for unknown command in console application
...
suggestion is based on two principles:
- first suggest commands the begin with the unknown name, to suggest
commands after accidentally hitting enter
- second find similar commands by computing the levenshtein distance
which is a measurement on how many changes need to be made to convert
one string into another. This is perfect for finding typos.
8 years ago
Carsten Brandt
1d3495d84d
Alternative implementation for Unknown command suggestions
...
alternative implementation for #12661 , proof of concept, does not
include filtering by similarity yet.
issue #12659
8 years ago
SilverFire - Dmitry Naumenko
1454d3fa37
Updated CHANGELOG
...
fixed typo
8 years ago
Carsten Brandt
3e6074f32d
bash completion for ./yii command options
8 years ago
SilverFire - Dmitry Naumenko
4454d05410
Added ZSH completion, moved scripts to a separate directory
8 years ago
Carsten Brandt
beb140446b
added test for helpcontroller list action
8 years ago
Carsten Brandt
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
8 years ago
Carsten Brandt
612afdbc66
Merge pull request #13111 from yiisoft/js-tests
...
Making JS tests ready to go into master.
8 years ago
Alexander Makarov
954c771fdb
Code cleanup ( #13113 )
...
* Simplified code branching, named variable better
* More simple code cleanup
* More consistent line breaks before return statemetns
8 years ago
Boudewijn Vahrmeijer
9c0e94efea
Update CHANGELOG.md
...
typo
8 years ago
Alexander Makarov
f9ee486fd7
Merge pull request #13116 from yiisoft/aria-required-and-aria-invalid-input-attributes
...
Aria required and aria invalid input attributes
8 years ago
Alexander Makarov
e1b0cb4343
Merge branch 'master' into aria-required-and-aria-invalid-input-attributes
8 years ago
Carsten Brandt
faea888652
update codeclimate rules to match yii style
...
follow up to #13121
8 years ago
Robert Korulczyk
fc0752f388
Disable `Controversial/CamelCasePropertyName` codeclimate check ( #13121 )
...
* Disable `Controversial/CamelCasePropertyName` codeclimate check
* Fix indentation
8 years ago
Alexander Makarov
0b9feb28e5
More renaming, removed unnecessary code
8 years ago
SilverFire - Dmitry Naumenko
560332ed42
Merge branch 'module-di-config'
8 years ago
SilverFire - Dmitry Naumenko
437825be70
Implemented Container::setDependencies(), Container::setDefinitions
...
Closes #11758
Closes #13029
8 years ago
Klimov Paul
c17766181f
Added `QueryInterface::emulateExecution()`
...
Added `QueryInterface::emulateExecution()`, which allows preventing of
the actual query execution.
This allows to cancel `DataProvider` preventing search query execution
in case search model is invalid:
``` php
public function search($params)
{
$query = Item::find();
$dataProvider = new ActiveDataProvider([
'query' => $query,
]);
$this->load($params);
if (!$this->validate()) {
$query->where('0=1');
$query->emulateExecution(); // No SQL execution will be done
return $dataProvider;
}
```
This also fix unecessary query in case of `via()` usage. See #12390 .
fixes #12390
fixes #6373
close #12708
8 years ago
Alexander Makarov
de4f518b94
More renaming
8 years ago
Alexander Makarov
edfbab4a6b
More renaming and formatting fix
8 years ago
Alexander Makarov
dc294ba56f
Renamed variables, changed logic of turning client updates on
8 years ago
Alexander Makarov
b25ebaa782
Fixed formatting
8 years ago
SilverFire - Dmitry Naumenko
9807b2e1a1
Follow-up to 65c2ade
. Smarter fix of #13118
8 years ago
Boudewijn Vahrmeijer
fec8ae2e1e
removed @since
8 years ago
SilverFire - Dmitry Naumenko
65c2ade8ed
Fixed `handleAction()` function in `yii.js` to handle attribute `data-pjax=0` as disabled PJAX
...
Fixes #13118
8 years ago
Alexander Makarov
ed8acc8e03
#12399 adjustments
8 years ago
a.kompaniets
fb779e3ec6
Fixes #12399 : Added `ActiveField::addAriaAttributes` property for `aria-required` and `aria-invalid` attributes rendering
8 years ago
SG5
1141fc81a7
Fixes #12735 : Fixed `yii\console\controllers\MigrateController` creating multiple primary keys for field `bigPrimaryKey:unsigned`
8 years ago
zalatov
deea3cf798
Fixes #12854 : Added `RangeNotSatisfiableHttpException` to cover HTTP error 416 file request exceptions
8 years ago
Boudewijn Vahrmeijer
5784dd1dbf
fix travis
8 years ago
Boudewijn Vahrmeijer
53a2a48f97
Update tutorial-i18n.md
...
to double quotes
8 years ago
Boudewijn Vahrmeijer
9d9b800a57
Improve docs on i18n messages ( #13107 )
...
* start with improving doc
* updates
* fixes for @samdark review
* fixes after @cebe's review
* changes after @silverfire
8 years ago