Commit Graph

496 Commits

Author SHA1 Message Date
Alexander Makarov
44558df59d #2603: yii\base\ErrorHandler now extends \ErrorHandler 2014-03-07 02:21:36 +04:00
Alexander Makarov
c5ec3550de Removed unused "use" statements 2014-03-07 02:10:32 +04:00
Qiang Xue
e38c4225b2 Merge commit 'bdce87b242abbff800020deba0a5c2031fc2efe7' into feature-restapi
Conflicts:
	framework/db/BaseActiveRecord.php
2014-03-06 00:00:33 -05:00
Qiang Xue
1b03dc8f4c major features and documentation finished for REST API. 2014-03-05 23:52:33 -05:00
Qiang Xue
3f42d5826a REST wip. 2014-03-05 13:29:24 -05:00
Qiang Xue
5474300c8b fixed loading namespaceless controller classes. 2014-03-05 08:29:07 -05:00
Qiang Xue
10061359ed Fixes #1467: Added support for organizing controllers in subdirectories 2014-03-04 23:30:48 -05:00
AlexGx
c047fbe0df fix code style No space found after comma in function call 2014-03-04 05:46:43 +02:00
AlexGx
112f67d20a fix code style There must be one blank line after the namespace declaration 2014-03-04 05:39:17 +02:00
Alexander Makarov
9973a2fa20 Fixed phpdoc class reference in Theme 2014-03-04 00:56:13 +04:00
Qiang Xue
a8c7d36c02 Finished HATEOAS support. 2014-03-03 14:58:37 -05:00
Alexander Mohorev
c7e8d8b900 @param, @var, @property and @return must declare types as boolean, integer, string, array or null 2014-03-03 20:50:44 +03:00
Qiang Xue
7b46dc3443 Fixed incorrect error handling. 2014-03-02 12:32:22 -05:00
Qiang Xue
39947be66b rest WIP 2014-02-28 21:25:43 -05:00
Qiang Xue
6c88183be0 Merge commit 'd3ff343e5ee02a14dd17d6cf947aa7f52857474a' into feature-restapi
Conflicts:
	framework/helpers/BaseArrayHelper.php
2014-02-28 18:22:10 -05:00
Qiang Xue
9beba31fc0 rest WIP 2014-02-28 08:34:51 -05:00
Qiang Xue
49010df192 Changed Controller::afterAction(), Module::afterAction() and ActionFilter::afterAction() to pass $result by value instead of reference 2014-02-27 10:52:17 -05:00
Carsten Brandt
33d6acba25 Improved behavior support, fixes #2550
call hasMethod() instead of using method_exists
2014-02-26 14:18:24 +01:00
Qiang Xue
6f9e9cd5b0 minor fix. 2014-02-26 08:02:54 -05:00
ivokund
7c63c6db3b Update Action.php
Fixed typo in runWithParams
2014-02-26 14:30:10 +02:00
Qiang Xue
f9648fed4e Fixed action beforeRun/afterRun calls. 2014-02-26 07:06:30 -05:00
Alexander Makarov
03b2fc3e58 Adjusted code formatting 2014-02-25 23:02:40 +04:00
Alexander Makarov
dab4f9d665 Merge branch '2524-formatter-format-file-size' of github.com:VinceG/yii2 into VinceG-2524-formatter-format-file-size
Conflicts:
	framework/CHANGELOG.md
2014-02-25 22:59:12 +04:00
Vincent
84a48ac93e updated changelog 2014-02-24 13:45:44 -08:00
Vincent
9f6cc54154 updated code according to code style and removed unused property 2014-02-24 13:26:55 -08:00
Vincent
3cb97fb8c8 updated formatting 2014-02-24 12:01:53 -08:00
Vincent
d12c8d5820 #2524 updated as size method to include translation and verbose mode 2014-02-24 10:57:36 -08:00
Carsten Brandt
8d2e68b40e removed duplicate arguments from base formattter 2014-02-24 17:19:01 +01:00
Vincent Gabriel
9427f4e76b no need for as number #2524 2014-02-23 16:36:17 -08:00
Vincent Gabriel
9e231eb8c8 added asSize method to format file size #2524 2014-02-23 16:23:05 -08:00
Qiang Xue
992f8edcb0 proper implementation of View::viewFile. 2014-02-21 16:41:33 -05:00
Qiang Xue
97d291ca6a Added View::viewFile and removed ViewEvent::viewFile 2014-02-21 16:31:59 -05:00
Carsten Brandt
8f491f2836 moved @include tags of api docs directly into the class 2014-02-20 21:30:47 +01:00
Florian Fackler
7b61873425 Changed Exception wording to be more clear 2014-02-09 09:13:16 +01:00
Florian Fackler
c600572f34 The missing Component.php tests 2014-02-08 21:11:03 +01:00
gureedo
f9e58d92fc check error level in error handler 2014-02-08 17:44:13 +06:00
Alexander Makarov
97917e6580 Revert "Added yii\base\Module::getParam($name, $defaultValue = null) to conveniently work with application parameters"
This reverts commit 3b95aa9cd1.
2014-02-05 23:18:36 +04:00
Alexander Makarov
9c0572bff9 Fixed $model->load($data) returned true if $data and formName were empty 2014-02-05 22:08:47 +04:00
Alexander Makarov
3b95aa9cd1 Added yii\base\Module::getParam($name, $defaultValue = null) to conveniently work with application parameters 2014-02-05 18:20:21 +04:00
Qiang Xue
00f34f390a Fixes #2303: Fixed the bug that yii\base\Theme::pathMap did not support dynamic update with path aliases 2014-02-04 07:40:57 -05:00
Alexander Makarov
d9d36006a7 Fixed default scenario constant in docs 2014-02-02 19:09:33 +04:00
Carsten Brandt
214f66a8c1 skip exiting in test env.
see 0cfd41a21a (commitcomment-5238567)
issue #2233
2014-02-01 19:53:01 +01:00
Alexander Makarov
91444b20c8 #2248: Renamed yii\base\Model::DEFAULT_SCENARIO to yii\base\Model::SCENARIO_DEFAULT 2014-02-01 01:06:08 +04:00
Carsten Brandt
0cfd41a21a let application exit with code 1 on error/exception in console
fixes #2233
2014-01-31 15:01:05 +01:00
Qiang Xue
6bc4a8cf94 Fixes #706: Added yii\widgets\Pjax and enhanced GridView to work with Pjax to support AJAX-update 2014-01-28 23:27:24 -05:00
Carsten Brandt
262189533a huge amount of documentation link fixes 2014-01-28 17:54:40 +01:00
Carsten Brandt
f93054a486 fixed possible problem with realpath and false value
realpath(false) = current working directory.
This can cause problems with getAlias() which returns false.

see yiisoft/yii#3113
2014-01-28 14:28:39 +01:00
Carsten Brandt
21ae27b306 updated phpdoc properties 2014-01-28 00:11:18 +01:00
Qiang Xue
c829dd6b47 added more tests. 2014-01-27 17:24:48 -05:00
Qiang Xue
18d7224ac8 Fixes #2149: Added yii\base\DynamicModel to support ad-hoc data validation 2014-01-27 16:13:25 -05:00