Commit Graph

32 Commits

Author SHA1 Message Date
Alexander Makarov
be5afe7da8 Fixes #1572: Added yii\web\Controller::createAbsoluteUrl() 2013-12-22 22:06:11 +01:00
Qiang Xue
c7c13a6693 Added concrete http exception classes. 2013-11-29 21:22:08 -05:00
Qiang Xue
a5e3c00d75 replaced inheritdoc tags. 2013-11-29 12:49:07 -05:00
Panagiotis Moustafellos
2ff8ac3d61 fixed PhpDoc by swapping to {@inheritdoc} 2013-11-26 04:24:20 +02:00
Qiang Xue
4b353c7bce Fixes #1297: CSRF not generated on error pages 2013-11-24 17:41:09 -05:00
Carsten Brandt
33f4a142ee fixes invalid value in controller redirect
fixes #1261
2013-11-21 01:56:42 +01:00
Carsten Brandt
a82330b212 reverted duplicated fix for #1244
fixes #1244
2013-11-20 21:09:30 +01:00
Carsten Brandt
64862f96ca disable CSRF validation after validation has failed
this allows to be able to call error action.

fixes #1244
2013-11-20 14:35:08 +01:00
Carsten Brandt
539e233d9c massive improvement on class documentation
- added example code for application components
- added missing short description

[ci skip]
2013-11-13 01:16:21 +01:00
Qiang Xue
dbecf848f4 Fixes #1156: action parameter binding now checks for array type. 2013-11-08 23:21:41 -05:00
Carsten Brandt
5ddb0e2cbf controller php-doc 2013-11-08 12:34:13 +01:00
Carsten Brandt
913eb62294 updated phpdoc and fixed generator read/write-only annotation 2013-11-08 12:24:03 +01:00
Qiang Xue
eeed9c3ff2 Fixes #998: Added support for generating canonical URL. 2013-10-31 20:56:13 -04:00
Alexander Makarov
1f6a823073 Short array syntax 2013-10-18 20:52:38 +04:00
Carsten Brandt
61fe888780 Merge branch 'master' into i18n-icu
* master: (103 commits)
  fixed broken test after whitespace changes in view
  Removed the extra EOLs.
  I add new line in methods that render code in the head and for body
  GII update button style
  GII create object button style [skip ci]
  Fixes #980: Changed the default way of generating action URLs for ActionColumn.
  View default value for $params
  adjusted cubrid version in schema quote
  removed cubrid env from tavis.yml
  simplified cubrid db install on travis
  fixed cubrid schema test for pdo type
  fixed validator test break
  added cubrid specific pdo type casting
  Updated FileValidator tests
  Better AR connection init in tests
  Removed @codeCoverageIgnore
  no xss for attribute error messages that contain {value}
  Clientvalidation {value} was not what has been validated
  moved getPdoType() to Schema.
  optimized datepick js code.
  ...
2013-10-16 22:04:17 +02:00
Carsten Brandt
6507e2e316 applied new style of Yii::t params to all occurences 2013-10-16 22:03:26 +02:00
Carsten Brandt
2c30ddfcb0 added web\Controller::goBack() as shortcut
goBack() will redirect user to his returnUrl
fixes #925
2013-10-01 20:01:14 +02:00
Qiang Xue
ae39324e54 Support ajax redirection. 2013-09-20 16:21:18 -04:00
Qiang Xue
4f555a5751 Fixed CSRF validation bug. 2013-09-19 08:17:07 -04:00
Qiang Xue
f9b957554f Added Controller::enableCsrfValidation to support turning on/off CSRF validation for particular actions. 2013-09-18 23:24:11 -04:00
Carsten Brandt
147558ea19 added some class documentation 2013-08-28 19:33:06 +02:00
Carsten Brandt
bdb77f33ba updated @property annotations of many classes 2013-08-28 14:16:13 +02:00
Qiang Xue
27ad7e1fc7 Added Controller::goHome(). 2013-08-12 13:19:37 -04:00
Qiang Xue
21eab82413 Refactored redirect() methods. 2013-08-12 12:01:59 -04:00
Qiang Xue
d1212bc73b Support relative route in Controller::createUrl() 2013-07-24 11:20:04 -04:00
Qiang Xue
9cf82b3ae1 Added Model::load(). Added Controller::refresh() and redirect(). 2013-06-26 08:34:27 -04:00
Qiang Xue
f18d6df625 Revert "Merge pull request #548 from cebe/action-response"
This reverts commit 9d7597d61a, reversing
changes made to 6b6390f72b.
2013-06-16 19:45:58 -04:00
Carsten Brandt
b138199c59 implementation of Response tied to actions
Result of a discussion with @qiangxue
- there is not global Yii::$app->response anymore, every action has
  dedicated response class
- implementation allows using HMVC pattern now, nested actions do not
  interfer
2013-06-16 18:12:27 +02:00
Qiang Xue
03e07f4340 cleaned up "use" statements. 2013-06-14 22:42:55 -04:00
Qiang Xue
ad218c6719 moved HttpException to web. 2013-06-10 17:08:26 -04:00
Qiang Xue
f690f0db13 Fixes issue #441: InvalidRequestException should be HttpException 2013-05-28 19:24:08 -04:00
Qiang Xue
f72105166c reorganized the main repo to satisfy PSR-0. 2013-05-21 21:19:05 -04:00