577 Commits

Author SHA1 Message Date
b3053f4346 Made Theme::basePath optional fixes #2810 2014-03-19 15:43:37 +04:00
ed70735b22 Changelog and doc 2014-03-19 10:48:20 +01:00
dde5a00ce3 Merge branch 'master' of https://github.com/yiisoft/yii2
Conflicts:
	framework/base/Formatter.php
	tests/unit/framework/base/FormatterTest.php
2014-03-18 17:31:11 +01:00
530d7baabe fixed test break. 2014-03-18 00:23:12 -04:00
a3274c5ffc Fixed test break. 2014-03-18 00:13:02 -04:00
8c2e39235f Turn module and application into DI containers. 2014-03-17 23:57:01 -04:00
d2c84606a9 Fixes #2775: Added yii\base\Application::bootstrap to support running bootstrap classes when starting an application 2014-03-17 11:57:44 -04:00
b9287abf81 minor fixes. 2014-03-17 09:47:34 -04:00
91e4ad5978 PSR-2 compliance 2014-03-17 12:02:26 +01:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
c01ffe7dc2 Fixes #2303: support setting basePath and baseUrl as aliases during runtime. 2014-03-14 20:31:36 -04:00
0fa5230cd0 Removed debug code, changed doc 2014-03-14 18:37:11 +01:00
cb3eb9c6d8 Added support for inverted intervals (future time) and unit tests 2014-03-14 18:29:23 +01:00
f84de98efb Fixes #2735
Adds DateTimeInterface support for Formatter
2014-03-13 15:39:29 +02:00
b5cd0a6f0c asElapsedTime can now take a DateInterval string as a parameter 2014-03-12 16:58:12 +01:00
b7cf618348 asElapsedTime style improvements 2014-03-12 16:02:45 +01:00
f7871e2458 asElapsedTime can now take DateInterval as parameter 2014-03-12 15:57:20 +01:00
a74fa20d2d Typo 2014-03-12 14:51:20 +01:00
ced45c5450 Call Yii::t everytime instead of passing a template variable 2014-03-12 14:49:28 +01:00
fd7ed28221 Typo in asElapsedTime description 2014-03-12 14:38:00 +01:00
e77ffe2c4a Added asElapsedTime function 2014-03-12 14:29:49 +01:00
40cb98bb02 updated @property annotations 2014-03-11 16:21:25 +01:00
595f55c504 api doc improvements 2014-03-08 14:20:19 +01:00
35018bfb21 Refactored controller creation process. 2014-03-07 22:34:03 -05:00
ad19e332f4 Added back some toArray() implementations. 2014-03-07 22:05:45 -05:00
fad635440b Fixes #2655: Arrayable and ArrayableTrait are incompatible for some PHP versions. 2014-03-07 19:08:27 -05:00
1b7e1cd027 Merge pull request #2605 branch 'feature' of https://github.com/mongosoft/yii2 into code-style
* 'feature' of https://github.com/mongosoft/yii2:
  returned back formatting language files
  code style. WHILE
  code style. FOR
  code style. FOREACH
  code style. operator IF
  @param, @var, @property and @return must declare types as boolean, integer, string, array or null
  short echo tags
  short array syntax

Conflicts:
	extensions/apidoc/commands/RenderController.php
	extensions/apidoc/models/BaseDoc.php
	extensions/apidoc/models/Context.php
	extensions/apidoc/templates/bootstrap/Renderer.php
	extensions/apidoc/templates/bootstrap/layouts/guide.php
	extensions/apidoc/templates/bootstrap/layouts/main.php
	extensions/apidoc/templates/bootstrap/views/index.php
	extensions/apidoc/templates/html/Renderer.php
	extensions/apidoc/templates/offline/views/index.php
	extensions/apidoc/templates/offline/views/offline.php
	extensions/apidoc/templates/online/views/index.php
	extensions/elasticsearch/Connection.php
	extensions/redis/ActiveQuery.php
	framework/base/ErrorException.php
	framework/helpers/BaseFileHelper.php
	tests/unit/framework/helpers/FileHelperTest.php
2014-03-07 21:54:44 +01:00
e2aacad8aa Added links to PHP.net to apidoc 2014-03-07 19:41:43 +01:00
bbea1ab19c Fixes #2629: Module::controllerPath is now read only, and all controller classes must be namespaced under Module::controllerNamespace 2014-03-07 10:35:15 -05:00
96d131899f Fixed ErrorException changes 2014-03-07 13:46:21 +04:00
11baf61977 Fixed unsetting relation bug. 2014-03-06 19:19:23 -05:00
44558df59d #2603: yii\base\ErrorHandler now extends \ErrorHandler 2014-03-07 02:21:36 +04:00
c5ec3550de Removed unused "use" statements 2014-03-07 02:10:32 +04:00
e38c4225b2 Merge commit 'bdce87b242abbff800020deba0a5c2031fc2efe7' into feature-restapi
Conflicts:
	framework/db/BaseActiveRecord.php
2014-03-06 00:00:33 -05:00
1b03dc8f4c major features and documentation finished for REST API. 2014-03-05 23:52:33 -05:00
3f42d5826a REST wip. 2014-03-05 13:29:24 -05:00
5474300c8b fixed loading namespaceless controller classes. 2014-03-05 08:29:07 -05:00
10061359ed Fixes #1467: Added support for organizing controllers in subdirectories 2014-03-04 23:30:48 -05:00
c047fbe0df fix code style No space found after comma in function call 2014-03-04 05:46:43 +02:00
112f67d20a fix code style There must be one blank line after the namespace declaration 2014-03-04 05:39:17 +02:00
9973a2fa20 Fixed phpdoc class reference in Theme 2014-03-04 00:56:13 +04:00
a8c7d36c02 Finished HATEOAS support. 2014-03-03 14:58:37 -05:00
c7e8d8b900 @param, @var, @property and @return must declare types as boolean, integer, string, array or null 2014-03-03 20:50:44 +03:00
7b46dc3443 Fixed incorrect error handling. 2014-03-02 12:32:22 -05:00
39947be66b rest WIP 2014-02-28 21:25:43 -05:00
6c88183be0 Merge commit 'd3ff343e5ee02a14dd17d6cf947aa7f52857474a' into feature-restapi
Conflicts:
	framework/helpers/BaseArrayHelper.php
2014-02-28 18:22:10 -05:00
9beba31fc0 rest WIP 2014-02-28 08:34:51 -05:00
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
33d6acba25 Improved behavior support, fixes #2550
call hasMethod() instead of using method_exists
2014-02-26 14:18:24 +01:00
6f9e9cd5b0 minor fix. 2014-02-26 08:02:54 -05:00