Commit Graph

259 Commits

Author SHA1 Message Date
Charles Pick
e5a036fd7c fix code style 2013-08-21 14:46:09 +01:00
Charles Pick
c6a3ae50de Add RESTful method support for html forms
This commit allows calls to `CHtml::form()`, `CHtml::beginForm`
`CActiveForm::$method` etc to accept verbs other than `post` and `get`,
e.g. `delete`, `put`, `patch` etc

This is implemented by detecting non `post`, `get`, converting to `post`
 and adding a hidden `_method` field, similar to how CSRF protection works.
2013-07-26 23:17:03 +01:00
resurtm
d2a1818a3d Fixes related to #129 and #2446:
1. Fix CS.
2. Add additional PHPDoc declarations.
2013-07-08 10:06:13 +06:00
Paul Klimov
e9e929aa09 "CHtml::activeLabel()" has been fixed to resolve attribute label for tabular input in case custom "for" has been specified. 2013-05-29 12:40:46 +03:00
nsanden
7a22710e17 CHtml ajax doc fix 2013-05-27 11:24:49 -07:00
Alexander Makarov
c5eabde5b3 fixed CHtml::setModelNameConverter 2013-05-21 14:14:54 +04:00
Alexander Makarov
a16c1a218c fixed code style for #2225 2013-05-20 20:29:20 +04:00
LastDragon-ru
75d46631cc Using "call_user_func()" instead of "$callback()". 2013-05-05 16:28:40 +04:00
LastDragon-ru
dfbf73fdef Fixed variable names. 2013-05-05 15:16:08 +04:00
LastDragon-ru
8cb0800fc6 Fixed remarks from #2225 2013-05-05 15:09:24 +04:00
LastDragon-ru
5f0e9873c0 Fix whitespace. 2013-05-05 14:58:30 +04:00
LastDragon-ru
71314d6f2f Rename CHtml::setNameByModelConverter() to CHtml::setClassToNameConverter() 2013-05-05 14:58:26 +04:00
LastDragon-ru
1bfe6255f0 Fixed generation of the HTML class attribute for the data model * @see https://github.com/yiisoft/yii/issues/129 * @see https://github.com/yiisoft/yii/pull/1808 2013-05-05 14:58:22 +04:00
Paul Klimov
4c4b36ac56 "CHtml::button()" has been updated to not enforce "value" attribute for the image buttons. 2013-04-29 16:15:08 +03:00
Alexander Makarov
7f838f820e Merge pull request #1961 from adminnu/master
#1933: fixed using "multiple" parameter with a value of false in CHtml::activeDropDownList, CHtml::ListBox and CHtml::DropDownList
2013-04-27 05:22:06 -07:00
Alexander Kochetov
37e30f2115 phpDocFix 2013-04-19 20:24:07 +04:00
Alexander Kochetov
328744ad3c phpDoc fix 2013-04-18 21:46:46 +04:00
Alexander Kochetov
f4180e1127 phpDoc added 2013-04-18 21:42:57 +04:00
Alexander Kochetov
591a99cb46 CHtml::radioButtonList() and CHtml::checkBoxList() new template placeholders 2013-04-18 21:11:40 +04:00
Maurizio Domba (mdwork)
6db04696b5 Fixes #2239 proper meta refresh syntax 2013-03-25 09:27:24 +01:00
resurtm
64a6aa85f8 Merge branch 'master' of github.com:yiisoft/yii into 1980-better
Conflicts:
	CHANGELOG
2013-03-20 23:24:00 +06:00
resurtm
de416ba3a3 Enhancements to the #1980. 2013-03-20 23:21:59 +06:00
resurtm
35bdf64990 Fixes #2217: CHtml::radioButtonList() now supports $empty option. 2013-03-18 20:55:15 +06:00
resurtm
24d98144d8 Fixes: CHtml::activeTelField() used to display time input, not tel. 2013-03-15 20:25:00 +06:00
resurtm
e67f7c1612 Changes introduced in #2186 reverted. 2013-03-11 18:55:38 +06:00
Alexander Makarov
1e3a178d76 Merge pull request #2186 from resurtm/fixes-1955
Fixes #1955: Some validators used to cause warnings or errors in case non-scalar array typed values being checked.
2013-03-10 05:42:20 -07:00
resurtm
692390f2f5 CHtml::activeInputField() and CHtml::activeTextField() is not intended to display array values. 2013-03-10 16:09:49 +06:00
njasm
c2722a4f55 TABS Ident fix. 2013-03-09 12:32:27 +00:00
Paul Klimov
1210dcbe42 "CHtml::script()" and "CHtml::scriptFile()" have been updated allowing to compose HTML options. 2013-03-06 11:32:13 +02:00
Charles Pick
ba7b7c4dc6 1948 fix tiny whitespace issue 2013-02-12 14:50:55 +00:00
Charles Pick
e29f76747e Merge branch 'master' of github.com:yiisoft/yii into 1948-fix-html5-input-types 2013-02-12 14:33:55 +00:00
Charles Pick
c3df18844c 1948 minor tweaks 2013-02-12 14:31:29 +00:00
Charles Pick
d55fd536eb 1948 tidy up version info 2013-02-12 10:37:26 +00:00
Charles Pick
bda3ed4bd2 1948 tidy up version info 2013-02-12 10:36:01 +00:00
Charles Pick
afc69d47be 1948 tidy up whitespace 2013-02-12 10:35:32 +00:00
Charles Pick
d912cd0f63 1948 tidy up whitespace 2013-02-12 10:34:37 +00:00
Charles Pick
f4959b2e86 tidy up html5 input types 2013-02-12 10:29:39 +00:00
tom tomsen
0680f4c994 addtional -> additional
fixed a typo
2013-01-21 16:03:20 +01:00
adminnu
a5f36e9896 Merge branch 'master' of https://github.com/yiisoft/yii.git 2013-01-20 03:14:05 +04:00
adminnu
aafb8c43c1 small fix remove #1933: remove isset 2013-01-20 00:21:15 +04:00
adminnu
2576017ca7 small fixed #1933: $var!==false -> !empty($var) 2013-01-19 23:21:03 +04:00
Abdul Malik Ikhsan
6247adaf26 change copyright symbol 2013-01-15 18:38:02 +07:00
Abdul Malik Ikhsan
46c8ef0d9a update copyright year
from 2011 to 2013
2013-01-15 17:28:17 +07:00
njasm
84bb237d50 Added missing activeSearchField() method to CHtml. And searchField() to CActiveForm. For creation of HTML input field of type search, that fixes #1743 2013-01-14 19:03:43 +00:00
adminnu
d9a03d0e2f Fixed #1933: In the elements CHtml::activeDropDownList, CHtml::ListBox, CHtml::DropDownList multiple fixed bug with multiple parammetrom if false 2013-01-12 00:12:43 +04:00
resurtm
3f3f520917 Added NULL check into CHtml::value(), $attribute. 2012-12-23 14:12:49 +06:00
resurtm
694dcb885c Second parameter of the CHtml::value() doesn't support functions created by "create_function" anymore. 2012-12-21 21:19:26 +06:00
resurtm
fd5672978e Fixes CHtml::value() bug. 2012-12-21 17:04:09 +06:00
resurtm
fd9fb10904 Reverted PHPDoc typenames and added extra space for better readability. 2012-12-19 20:41:33 +06:00
resurtm
a6d98dc7ed #1861: PHP 5.2 testing issues and forgot about create_function. 2012-12-19 20:12:42 +06:00