Commit Graph

180 Commits

Author SHA1 Message Date
Qiang Xue
b316ebee7f typo fix. 2013-10-27 10:16:10 -04:00
Qiang Xue
e4299afac1 minor code refacotring. 2013-10-25 20:33:16 -04:00
Qiang Xue
2a71c72d7c fixes #1066: Added ActiveForm::validate() and validateMultiple() 2013-10-24 21:24:30 -04:00
Alexander Makarov
ee2af2661c Removed unneeded use statements 2013-10-24 03:12:25 +04:00
Alexander Makarov
d5fd2bfe98 Removed re-declaration of $preload from Application 2013-10-23 20:11:04 +04:00
Carsten Brandt
40d06e6f43 more on short array syntax 2013-10-22 11:30:39 +02:00
Qiang Xue
c28a005fb8 Added extension initialization to application life cycle. 2013-10-21 23:46:05 -04:00
Qiang Xue
98bd4041dc adjusted calling sequence within init(). 2013-10-21 20:58:21 -04:00
Qiang Xue
b03b38fb0d Added $publish parameter to AssetManager::getBundle(). 2013-10-20 10:31:06 -04:00
Carsten Brandt
1475b46249 adjusted asset phpdoc after refactoring #996 2013-10-20 12:45:05 +02:00
Qiang Xue
ee261d3838 Merge pull request #1020 from yiisoft/module-refactoring
Module & Application refactoring
2013-10-19 12:33:40 -07:00
Alexander Makarov
8e1199b0f6 Moved setting controllerNamespace back to init 2013-10-19 23:24:51 +04:00
Alexander Makarov
9434cc8f40 Moved Application::$controllerNamespace init into variable declaration, reordered Module::__construct. 2013-10-19 13:30:31 +04:00
Qiang Xue
03861b6fde Extension installer wip 2013-10-19 00:35:57 -04:00
Alexander Makarov
61352a440f Merge branch 'master' 2013-10-19 02:24:27 +04:00
Alexander Makarov
6bcacec946 Revert "Better handling of trying to configure already instantiated component"
This reverts commit 6b15768a3f.
2013-10-19 02:23:52 +04:00
Alexander Makarov
8583de701d Removed unnecessary call 2013-10-19 02:23:05 +04:00
Alexander Makarov
54e1abaa7b Better Module::init refactoring 2013-10-19 02:22:05 +04:00
Alexander Makarov
3e2bcfdf52 Refactored Module::setBasePath to remove instanceof condition 2013-10-19 02:19:27 +04:00
Alexander Makarov
e8eccc281d Refactored instanceof in Module into method in Application 2013-10-19 02:01:58 +04:00
Alexander Makarov
6b15768a3f Better handling of trying to configure already instantiated component 2013-10-19 01:02:13 +04:00
Alexander Makarov
1f6a823073 Short array syntax 2013-10-18 20:52:38 +04:00
resurtm
b3b5e36d42 Remove use ($this). Related to 9e1b498fb5. 2013-10-18 09:46:52 +06:00
resurtm
9e1b498fb5 PHP 5.4 supports $this with closures. 2013-10-18 09:31:37 +06:00
Alexander Makarov
6f9785a293 fixes #995 2013-10-17 12:30:41 +04:00
Qiang Xue
8293e4d9d7 Refactored getModule and hasModule. 2013-10-16 20:27:18 -04:00
Luciano Baraglia
bce3afcca2 Module::getModule and Module::hasModule support for sub-modules - see #983 2013-10-16 18:14:18 -03:00
Qiang Xue
3e159c9969 Removed the extra EOLs. 2013-10-16 12:07:09 -04:00
iJackUA
253becaef5 View default value for $params
To prevent Warning "Trying to get property of non-object" in case when nothing set to params, but you try to get some key (check is there something)

ArrayHelper::getValue($this->view->params, 'abc');
2013-10-15 09:56:16 +03:00
Carsten Brandt
1600889f4e added isAttributeActive to Model
consistent api for safe and required
2013-10-13 19:50:14 +02:00
Carsten Brandt
3a981e26da improved errorhandler output
when error occurs while handling errors output was not readable in web
context
2013-10-13 15:19:20 +02:00
Carsten Brandt
72b4f4f717 added comment 2013-10-11 02:20:51 +02:00
Carsten Brandt
80cf9c8be9 better error message 2013-10-11 02:19:32 +02:00
Carsten Brandt
a922c41ee6 more asset bundle tests and docs 2013-10-11 02:14:59 +02:00
Carsten Brandt
abc1e0c2bb fix issue #700
adjust depended asset position or throw exception on conflict
2013-10-11 01:54:05 +02:00
Carsten Brandt
a6784f4ae9 doc fix 2013-10-11 01:14:40 +02:00
Alexander Makarov
618f981112 Renamed i18n to be all lowecase when accessed as a property 2013-10-03 01:41:38 +04:00
Qiang Xue
9e9b3548db refactor Exception::toArrayRecursive(). 2013-09-29 12:06:00 -04:00
Jin Hu
5d7c37bd7e Incorrect array representation when has previous 2013-09-29 23:27:14 +08:00
Qiang Xue
93d5f5a3ec Fixes #897. 2013-09-22 13:01:27 -04:00
Qiang Xue
f4cbadb37b Merge pull request #896 from wicaksono/development
Use str_replace() rather than implode-explode
2013-09-21 17:27:02 -07:00
Niko Wicaksono
2765bcccf8 Use str_replace() rather than implode-explode 2013-09-22 00:49:12 +07: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
Qiang Xue
9836b28ed3 Fixes #884. 2013-09-18 00:35:31 -04:00
Qiang Xue
1aa836ffc7 use meta tags to pass CSRF token. 2013-09-17 21:00:19 -04:00
Qiang Xue
91b6e2945a Removed the support for calling anonymous function returned as a property value. 2013-09-12 20:10:06 -04:00
Qiang Xue
84dd19d76f Fixed the issue that Object/Component doesn't support using anonymous function as normal property values. 2013-09-11 13:42:34 -04:00
Qiang Xue
a9991d4e91 CRUD WIP 2013-09-07 08:18:41 -04:00
Alexander Makarov
6d25d3aef6 Added info about custom validator method signature to Model::rules phpdoc 2013-09-06 18:44:02 +04:00
Qiang Xue
b16bf0691a fixed typo 2013-09-05 23:37:15 -04:00