phpnut
8a2b51c3ec
"Removing all shortcut function usage from the core"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6128 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-08 06:08:03 +00:00
phpnut
34227c0f68
"Fixes #3702 , Radiobutton field ids conflict when using 2 models with the same fieldname"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6122 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-06 15:55:44 +00:00
phpnut
1a223ee7a2
"Fixes #3618 , Form::select don't call Form::_ _secure if option \"multiple\" is set"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6113 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-03 01:14:06 +00:00
phpnut
625b86dc9b
"Fixes 3655, $form->end() is missing 'div' customizability when passing to $form->submit();
...
Added additional tests, updated doc comment"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6096 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-29 07:33:51 +00:00
gwoo
3fdfdfb1cb
updating FormHelper::input() to allow multiple checkbox
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5994 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-15 07:18:25 +00:00
nate
1f56ef2b7a
Adding 'multiple' => 'checkbox' option to FormHelper::select() (Ticket #1901 and Ticket #3043 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5992 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-14 05:51:49 +00:00
gwoo
f5dc3c7655
fix for overriding of FormHelper::input() type
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5991 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-13 09:36:31 +00:00
phpnut
eb6c94a01e
Closes #2781 , $form->input on date fields renders maxYear and minYear in $options as HTML attributes.
...
Closes #3181 , Year list ordering in FormHelper order is now formated descending.
Fixes #3524 , FormHelper->month, day, year, hour, and minute should use $selected if it is supplied.
Fixes #3558 , post validation don't pass if form use only hidden fields.
Fixes #3568 , Saving datetime fields is broken in scaffolding.
Fixes #3574 , Typo in Session class.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5987 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-12 11:31:43 +00:00
phpnut
2d428905aa
Fixing blackHole of forms when date/datetime fields are used
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5984 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-12 02:41:23 +00:00
gwoo
6c0e70faa5
updating scope in Helper::setEntity()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5981 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-12 00:57:38 +00:00
gwoo
25252e678a
updating scope in Helper::setEntity()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5980 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-12 00:43:38 +00:00
gwoo
18c916fc76
adding tests, closes #3550 , closes #3513 , fixes #3556
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5971 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-09 01:36:34 +00:00
gwoo
42767170d1
fixing habtm
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5967 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-08 01:44:47 +00:00
nate
858447a184
Fixing date/time inputs and removing dependency on Controller::cleanUpFields()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5965 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-08 00:05:12 +00:00
nate
0b217acd18
Enabling formatting attribute for FormHelper date and time fields (Ticket #2405 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5951 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-05 03:57:12 +00:00
nate
a320969c0a
Fixing form entity scoping when security tokens are enabled
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5947 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-04 19:15:18 +00:00
nate
6040dd2779
Updating helpers with new form field naming scheme
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5945 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-04 18:07:59 +00:00
gwoo
cce99ee386
fix for FormHelper not picking up habtm fields with latest schema changes.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5921 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-29 16:20:37 +00:00
nate
7e9b05e429
Adding hidden form inputs for REST routing
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5913 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-28 05:28:45 +00:00
gwoo
fbd3811cd1
removing usage of Model::loadInfo() replaced by Model::schema(), removing new lines at the end of some files, removed deprecated chmodr() function from basics, updated bake and scaffold views
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5912 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-28 04:18:18 +00:00
nate
a87a0e2a68
Refactoring schema generation, passing model tests with SQLite driver, refactoring database methods
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5909 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-27 20:32:19 +00:00
nate
585d0fc645
Changing FormHelper::create() back to being model-oriented
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5879 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-23 02:36:07 +00:00
gwoo
beb600094b
updating FormHelper and scaffold edit template
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5873 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 23:41:43 +00:00
phpnut
5a270f2220
Fixes #3435 , In FormHelper::end($options), unable to use $options['submit'] with $options['label']
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5863 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 17:30:14 +00:00
mariano.iglesias
896f62544b
Changing @return int to @return integer and @param bool to @param boolean
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5860 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:54:36 +00:00
phpnut
160cd28440
Correcting @return int
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5858 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:11:12 +00:00
phpnut
da97a5c871
Correcting @return bool
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5857 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:09:35 +00:00
mariano.iglesias
897825d596
Adding documentation to classes belonging to Cake console.
...
Standarizing on datatypes used in phpdocblocs and removing unneeded @return types
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5851 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 05:52:20 +00:00
phpnut
ae9243e43d
Added translated string for 'Submit' in FormHelper::end()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5814 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-20 07:12:54 +00:00
phpnut
5ddf8f7180
Corrected missing second param in __() in FormHelper::submit()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5813 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-20 07:10:46 +00:00
phpnut
e78fc1e90c
Fixes #3305 , Console i18n extract using wrong paths.
...
Closes #3396 , i18n fixes
Fixed TranslateBehavior::_getLocale() throwing error if I18n class had not been loaded
Added [P]roject to bake
Updated locale pot file
Removed css and js directories from skel
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5809 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-20 05:55:37 +00:00
phpnut
ffc1e3d93f
Adding additional fixes from #3271
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5797 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-19 07:46:19 +00:00
mariano.iglesias
1545b730ae
Escaping value for FormHelper::textarea() and adding some tests, fixes #2921
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5778 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-17 17:08:34 +00:00
phpnut
1aa1164b1d
Closes #3394 , applied test patch
...
Deprecated define('MAX_MD5SIZE', (5 * 1024) * 1024); in core.php
Removing additional defines in core.php, replaced with Configure::write();
Added CakeSession::__startSession() to check for sent headers before attempting to start the session.
Added notices to Configure::__loadBootstrap() that will be removed before stable release.
Refactored Folder::tree().
Added additional FolderTest cases
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5768 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-16 09:05:25 +00:00
nate
16fbd33eee
Fixing FormHelper::inputs() to respect both 'legend' and 'fieldset' settings
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5767 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-16 04:41:00 +00:00
gwoo
9c7f0755a5
updating FormHelper::radio(), closes #3315 and closes #3279 , updated Token wrappers, closes #3317 , updated tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5759 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-15 07:47:13 +00:00
gwoo
a3fc6e4af5
updating FormHelper::inputs(), closes #3325 and closes #3324 , tests added
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5758 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-14 23:41:05 +00:00
mariano.iglesias
b06c7f88e2
Reflecting new radio signature in usage, and adding tests for separator usage
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5749 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-11 16:45:23 +00:00
nate
736ab28b0b
Refactoring Helper/FormHelper to actually use dynamically generated name attributes; refactoring out extra parameter in FormHelper::radio(), per gwoo
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5744 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-09 20:44:28 +00:00
phpnut
fda664d737
Fixes #3282 , Problem with _Token.fields and few submit buttons
...
Fixed failing Dbo*Test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5725 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-06 04:37:58 +00:00
phpnut
d7ad471580
Fixing undefined notice in FormHelper when using SecurityComponent.
...
Corrected test case in FormHelperTest::testFormCreateWithSecurity()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5722 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-04 19:43:32 +00:00
phpnut
47e8b36c92
Adding fix for hidden fields causing blackHole on forms when using SecurityComponent
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5720 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-04 18:27:35 +00:00
phpnut
34a88741bf
Fixing sorting of fields used in a form when using the SecurityComponent
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5696 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-27 00:38:03 +00:00
phpnut
3a4b960520
Fixes #2966 , soring of fields corrected
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5661 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-16 20:09:09 +00:00
nate
55e8592e17
Fixing passed args support in Router, refactoring helper tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5653 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-16 18:32:02 +00:00
gwoo
ed6b0d7649
fixes #3184 FormHelper::radio() values, fixes #3156 FormHelper::create() action, fixes #3097 FormHelper::label() localization text. Thank you for the patches and tests.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5619 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-07 01:22:03 +00:00
gwoo
656247427f
fix for label in radio
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5586 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-27 03:15:08 +00:00
gwoo
e54fe6a523
adding label and fieldset for radio, set label=>false to turn it off, css adjusted
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5585 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-27 00:11:36 +00:00
nate
5ba07c76c4
Localizing label text in FormHelper::input() (Ticket #2314 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5549 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-19 12:55:23 +00:00
dho
a5fd1561e8
By default no radio element is checked (ticket #2963 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5540 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-17 09:15:19 +00:00
dho
3c7168c58c
Removing unwanted id from radio elements
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5539 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-17 08:50:16 +00:00
nate
8d2d9d8684
Refactoring FormHelper::__selectOptions() (Ticket #1312 ) and adding tests for multiple select boxes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5516 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-13 20:20:01 +00:00
dho
ee3658894e
Applying patch from ticket #2236 plus adding tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5506 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-11 14:47:53 +00:00
nate
9a915e90ef
Applying correct fix for Ticket #2917 , updating FormHelper test cases, and adding Helper test group
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5467 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-26 14:23:38 +00:00
dho
1bda1d2ada
Avoiding to add 'type="checkbox"' twice (ticket #2917 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5462 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-25 14:50:01 +00:00
phpnut
549d86ac23
Refactoring dispatcher.
...
Added test for changes to Dispatcher.
Updating Model::_ _saveMulti(), moved the insert statement to DboSource::insertMulti() this will allow database that do not support multiple inserts in one statement to save data.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5460 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-25 04:38:28 +00:00
nate
8976f07acf
Adding fix for 'after' value not being rendered in FormHelper::input() (Ticket #2860 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5388 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-07 23:30:40 +00:00
gwoo
f757103dbe
adding test for form checkbox: #2785
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5358 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:37:51 +00:00
phpnut
a08f18c4a1
Adding patch from Ticket #2817 , Allow type radio in FormHelper::input()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5338 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-23 04:25:37 +00:00
phpnut
f29f6f99e6
Adding fix for duplicated hidden tag for fields token
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5332 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-22 06:10:27 +00:00
phpnut
bf5fc48087
Adding patch from #2791
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5330 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-22 04:13:29 +00:00
phpnut
364f3f4ff6
Adding fixes for:
...
Ticket #2805 , fixes Blacklisting fields in FormHelper::inputs doesn't work like intended
Ticket #2806 , adds FormHelper::inputs can work recursively on $fields
Merged changes from [5326]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5327 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-21 18:02:56 +00:00
phpnut
dac1bd0913
Correcting code structure to standards
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5315 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 07:51:52 +00:00
phpnut
23dfd90b29
Correcting code structure to standards
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5313 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 06:15:35 +00:00
phpnut
a9c0b7e406
Adding fix for Ticket #2786 , fixes form dateTime helper does not set year to current
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5312 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 06:07:11 +00:00
phpnut
d93d746663
Adding fix for Ticket #2795 , fixes hidden field for checkbox.
...
Updated FormHelperTest::testCheckboxField() to reflect the correct return value
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5310 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 04:30:45 +00:00
nate
430e11004d
Fixing forced empty element selection in FormHelper::select() (Ticket #2749 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5292 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-18 05:06:13 +00:00
dho
d9a0aa1c69
Applying patch from ticket #2763 , adding test for it
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5278 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-15 08:32:04 +00:00
gwoo
1737dba3d6
update to formhelper habtm fields
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5265 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-08 10:38:22 +00:00
gwoo
851a834995
fixing form helper for tickets #2726 and #2659 , updated tests.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5258 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-08 01:17:40 +00:00
phpnut
f9a40f312f
Adding fix for #2689 , fixes issue when using FormHelper::submitImage with Security Component enabled
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5252 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-06 18:54:45 +00:00
phpnut
52680ffcd3
Adding fix for FormHelper::checkbox() not creating the hidden fields.
...
Corrected errors when multiple hidden fields used in a form.
Fixed SecurityComponent::_ _validatePost() that would invalidate a form when checkboxes used.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5238 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-04 06:11:48 +00:00
phpnut
31dd607fbe
Adding fix for #2657 , fixes form with Textarea does not save when Security Component is enabled
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5222 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-30 00:08:25 +00:00
phpnut
cbd5bc9e47
Changing Helper::_ _value(); to Helper::value();
...
Removed HtmlHelper::value();
Changed all references to _ _value() to value();
Started changes needed for loading custom view classes located in a plugin
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5213 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-27 19:54:36 +00:00
gwoo
5a0832f086
updating formHelper for #1035 adding more tests, fixing some tags the would produce spaces
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5181 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-25 03:16:47 +00:00
gwoo
00b450929e
fixing FormHelper::month to use the comment from ticket #700
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5180 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-24 23:27:30 +00:00
gwoo
9667aa793a
adding strfrotime to FormHelper::month #700 , fix to radios which still need to be moved
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5178 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-24 23:14:14 +00:00
gwoo
bafd4689fe
adding formHelper::checkbox
...
adding tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5175 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-24 21:44:05 +00:00
phpnut
5332fa9cd2
Adding fix to allow empty multiple select when using the Security component. Prior to this fix a form would be considered invalid if nothing was selected.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5149 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-21 19:51:40 +00:00
phpnut
84de5b6e35
Adding fix for #2614
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5145 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-21 05:15:26 +00:00
phpnut
1db295f366
Adding patch from #2610 , fixes Scaffold plugin produces incorrect form "action"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5142 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-21 04:27:42 +00:00
mariano.iglesias
9b5dc57881
Fixing support for error messages when multiple validation rules are used with numeric indexes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5093 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-14 10:37:23 +00:00
mariano.iglesias
7de927eb46
Fixing and adding tests for ticket #2551
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5071 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-13 12:07:23 +00:00
gwoo
d1d583f0cd
updating scaffolding and css
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5038 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-10 16:19:23 +00:00
mariano.iglesias
2131b074f6
Correcting call to __value and using dot notation in button()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5037 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-09 02:09:56 +00:00
nate
360690ed7f
Adding sanity checking / warning messages for data returned from Model::loadInfo() (thanks phishy)
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5027 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-05 17:36:30 +00:00
mariano.iglesias
22adcb07a1
Adding possibility to specify if option values should be escaped, and adding tests for it
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5019 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-05 00:34:56 +00:00
phpnut
137fea94c6
Cleaning up line endings
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4994 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 04:35:25 +00:00
dho
9b18367fcc
Fixing problem with submit options in FormHelper::end() (ticket #2516 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4987 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 12:56:51 +00:00
phpnut
7fce78e73f
Adding fix to allow multiple forms when using SecurityComponent
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4985 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 09:11:42 +00:00
phpnut
4bac0a063b
Removing deprecated code and files
...
/basics.php
* normalizeList() Deprecated: see Set::normalize
* countdim() see Set::countDim
libs/controller/components/request_handler.php
* RequestHandler::disableStartup = false; see RequestHandler::$enabled
* RequestHandlerComponent::setView() see RequestHandlerComponent::renderAs()
* RequestHandlerComponent::setAjax() see RequestHandlerComponent::renderAs()
libs/controller/components/session.php
* SessionComponent::flash() use $session->flash('key'); in your views
libs/controller/controller.php
* Controller::_setTitle() see Controller::set()
libs/model/datasources/dbo_source.php
* DboSource::fetchArray() see DboSource::fetchRow()
* DboSource::one() see DboSource::fetchRow()
libs/model/db_acl.php
* DB_ACL::getAco() see AclComponent::$Aco::node()
* DB_ACL::getAro() see AclComponent::$Aro::node()
libs/neat_array.php
* Class is not longer available use libs/set.php Set class
libs/sanitize.php
* Sanitize::sql() see Sanitize::escape()
* Sanitize::cleanArray() see Sanitize::clean()
* Sanitize::cleanArrayR() see Sanitize::clean()
* Sanitize::cleanValue() see Sanitize::clean()
libs/view/helper.php
* Helper::parseHtmlOptions() see HtmlHelper::_parseAttributes()
libs/view/helpers/form.php
* define('TAG_DIV', '<div class="%s">%s</div>');
* define('TAG_P_CLASS', '<p class="%s">%s</p>');
* define('TAG_LABEL', '<label for="%s">%s</label>');
* define('TAG_FIELDSET', '<fieldset><legend>%s</legend>%s</label>');
* FormHelper::labelTag() see FormHelper::label()
* FormHelper::divTag() see HtmlHelper::div()
* FormHelper::pTag() see HtmlHelper::para
* FormHelper::generateInputDiv() see FormHelper::input()
* FormHelper::generateCheckboxDiv() see FormHelper::input()
* FormHelper::generateDate() see FormHelper::input()
* FormHelper::generateTime() see FormHelper::input()
* FormHelper::generateDateTime() see FormHelper::input()
* FormHelper::generateAreaDiv() see FormHelper::input()
* FormHelper::generateSelectDiv() see FormHelper::input()
* FormHelper::generateSubmitDiv() see FormHelper::input()
* FormHelper::generateFields() see FormHelper::input()
libs/view/helpers/html.php
* HtmlHelper::file() see FormHelper::file()
* HtmlHelper::submit() see FormHelper::submit()
* HtmlHelper::selectTag() see FormHelper::select()
* HtmlHelper::formTag() see FormHelper::create()
* HtmlHelper::linkEmail() see HtmlHelper::link()
* HtmlHelper::dayOptionTag() see FormHelper::day()
* HtmlHelper::yearOptionTag() see FormHelper::year()
* HtmlHelper::monthOptionTag() see FormHelper::month()
* HtmlHelper::hourOptionTag() see FormHelper::hour()
* HtmlHelper::minuteOptionTag() see FormHelper::minute()
* HtmlHelper::meridianOptionTag() see FormHelper::meridian()
* HtmlHelper::dateTimeOptionTag() see FormHelper::dateTime()
libs/view/helpers/javascript.php
* JavascriptHelper::linkOut() see JavascriptHelper::link()
libs/view/view.php
* View::setLayout() use $this->layout in your view
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4981 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 08:07:19 +00:00
phpnut
8be685504e
Adding ability to disable specific form data fields from being added to the validation key.
...
Example of using this would be javascript that changes hidden fields, adding additional fields added using javascript, etc.
This is set in a Controller::beforeFilter().
Example usage:
{{{
$this->Security->disabledFields = array('fieldname', 'additional fields');
$this->Security->disabledFields = array('Model.fieldname', 'OtherModel.fieldname');
}}}
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4978 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 02:31:06 +00:00
phpnut
7982208113
Reverting changes in last commit
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4975 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 15:17:27 +00:00
nate
154e3ccbb1
Refactoring FormHelper token generation
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4974 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 15:03:35 +00:00
phpnut
9c0d0216bc
Changing where the from token holding the fields from the form is created
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4973 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 13:35:33 +00:00
phpnut
d1701327f8
Adding hidden field values to hash. This will prevent altering of hidden fields in a form when using the FormHelper and adding the var $components = array('Security'); to a controller or the AppController to use by all child controllers
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4969 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 10:13:01 +00:00
phpnut
57023720e6
Adding form security enhancements.
...
Forcing checking of Session form token if security component is used.
Enhancement will not allow a form to be submitted if the fields in the form created with the FormHelper do not match the fields in the submitted form.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4968 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 08:56:02 +00:00
phpnut
30a5f0384e
Adding overriding error messages when multiple rules
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4948 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 12:10:57 +00:00
phpnut
fbb102445b
Fixing assigned by reference on php 4
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4942 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 09:42:39 +00:00
phpnut
aee7405863
Adding additional fix for #2481
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4905 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 03:05:08 +00:00
phpnut
e91a15e4e2
Adding fix for #2481 fixes Form::label() $tagName does not run through domId()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4904 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 02:58:01 +00:00
dho
efd8df1771
Applying fix from ticket #2485 , adding test for it
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4894 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-28 09:20:35 +00:00
dho
da0dacb013
Applying patch from ticket #2496 , adding test for it
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4893 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-28 08:57:34 +00:00
phpnut
9b8f81cc82
Removing $fieldset = null; in FormHelper::inputs()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4890 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-27 20:19:27 +00:00
phpnut
30498981a7
Adding fix for #2473
...
Fixed undefined variable notice in Form::inputs()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4889 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-27 20:16:38 +00:00
dho
9a865176aa
Removing invalid character
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4866 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 06:48:16 +00:00
gwoo
f4c9be8be2
working on form helper, added a submit button to form end if you pass true, added fieldset options to inputs
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4862 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 02:06:15 +00:00
dho
c9d4fa6451
Applying patch from ticket #2417
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4856 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-13 11:56:03 +00:00
phpnut
f1678686a4
Adding fix for Ticket #2326
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4835 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-11 15:20:37 +00:00
phpnut
980e713df7
Adding fix for Ticket #2360
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4808 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-06 19:05:06 +00:00
phpnut
69da631d61
Adding fix for Ticket #2353
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4795 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 21:20:08 +00:00
dho
dc06a86291
Fixing typo
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4781 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 12:11:23 +00:00
gwoo
c81fd8b256
finishing changes to FormHelper
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4776 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 04:31:46 +00:00
gwoo
f49183f70e
fixing some changes to FormHelper
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4769 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 02:11:20 +00:00
gwoo
06d6bbdbae
adding fix to FormHelper::create() for plugin path with action, see #2342 . Adding default sizes, maxlengths, and values to input. FormHelper::inputs() will now return all the fields in the model without the need to pass anything from the controller, uses a blacklist so some fields can be skipped. Added PaginatorHelper::numbers(), will output current page numbers, uses a modulus to decide how many to show on each side of the current page. Paginator::options() now allows setting default paging params
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4762 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 20:38:26 +00:00
nate
20645337f7
Adding fix for TIcket #2325
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4732 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-01 14:47:39 +00:00
dho
d4c5eea261
Adding patch from ticket #2324 plus test
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4731 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-01 14:31:23 +00:00
nate
23fc1e8e53
Refactoring FormHelper and fixing 'empty' option for date/time elements in FormHelper::input() (Ticket #2311 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4726 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-01 04:55:56 +00:00
nate
88563ebe46
Adding test cases for FormHelper::error()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4662 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-23 16:06:48 +00:00
nate
6b7d4f37d4
Fixing undefined variable in Router, updating Socket test, and fixing FormHelper::label() for dot notation (Ticket #2277 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4648 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-22 18:47:38 +00:00
phpnut
b183501e85
Adding changes needed to allow passing $tagName param using dot notation so use Model.field instead of Model/field which is being deprecated
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4630 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-17 07:58:22 +00:00
nate
92cd894314
Fixing AjaxHelper::dropRemote() (Ticket #2260 ) and updating test cases
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4626 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-16 23:54:24 +00:00
nate
3dae247bab
Fixing FormHelper::create() for use with associated models
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4617 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-16 04:47:10 +00:00
nate
32887a68ec
Making sure $attributes is an array in FormHelper::select()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4613 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-14 23:05:19 +00:00
phpnut
d6f73252ae
Moved all deprecated methods to end of file.
...
Added notices for all methods that are deprecated.
Added fix for Ticket #2185 .
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4583 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-04 15:28:08 +00:00
phpnut
694bee97ac
Moving date/time related form methods to FormHelper.
...
Fixed Ticket #2189 .
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4579 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-04 12:14:33 +00:00
phpnut
d931b77111
Removing $this->Html-> in FormHelper::textarea()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4578 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-04 10:51:24 +00:00
nate
c0ac0f536b
Initial implementation code for dynamic POST variable names
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4561 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-26 18:58:18 +00:00
nate
0e7fd21a8e
Removing 'showParents' attribute from FormHelper::select() output (Ticket #2134 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4530 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-17 16:56:25 +00:00
phpnut
f377ed6d2a
Adding Helper::webroot() to return correct url if theme is used
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4474 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-08 07:42:23 +00:00
nate
90b0f1f1cc
Allowing 'error' => false to disable validation error output in FormHelper::input() (Ticket #2071 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4467 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-07 20:13:59 +00:00
phpnut
a8a91e35be
Correcting all headers in the files
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4407 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 10:39:45 +00:00
nate
5a8cc752f1
Disabling REST-compliant hidden field temporarily
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4399 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 03:42:00 +00:00
nate
f754449004
Replacing ternary operations in FormHelper, and adding DOM ID's back to hidden inputs
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4365 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-31 22:43:32 +00:00
phpnut
bfc5168358
Adding fix for Notice: Undefined variable: data
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4345 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-29 10:40:19 +00:00
nate
55a4245d01
Rewriting automatic variable detection to work with any field
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4337 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-26 21:03:35 +00:00
nate
7d9ab97745
Fixing $model parameter in FormHelper::create() (Ticket #1963 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4318 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-22 08:32:00 +00:00
nate
9444538ec0
Updating helper method references, and fixing FormHelper::hidden() to work with '_method'
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4315 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-22 08:12:06 +00:00
gwoo
7af304b742
fixing FormHelper::input() error messages, ticket #1957
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4302 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-17 20:17:25 +00:00
nate
9737072e27
Fixing array key name in FormHelper::input()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4301 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-17 20:07:35 +00:00
nate
6e56e926e7
Adding 'before', 'between', and 'after' options to FormHelper::input()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4298 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-16 12:54:55 +00:00
nate
23cb3451c0
Fixing $model parameter for FormHelper::create(). Must pass false if the form is not associated with a model.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4295 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-16 07:07:49 +00:00
nate
33990b2193
Adding FormHelper::input() fix for generating select menus (Ticket #1860 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4293 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-14 05:46:03 +00:00
gwoo
86c344917d
updating FormHelper, #1860
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4282 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-11 00:11:55 +00:00
nate
8fb73307e9
Adding FormHelper::create() fix for AjaxHelper (Ticket #1836 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4259 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 00:47:54 +00:00
nate
b21b7f4b03
Cleaning up FormHelper code
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4245 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-03 17:36:14 +00:00
gwoo
6f8489b52e
making it possible to use FormHelper without a model
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4238 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-01 19:39:07 +00:00
nate
07985626fb
Fixing issue in FormHelper::input() where the 'type' attribute appears twice
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4235 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-31 08:28:55 +00:00
nate
48a8114579
Adding submit button wrapper div for FormHelper::submit()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4184 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-24 19:25:04 +00:00
phpnut
4f1c5ef386
Wrapping all core messages in translation function
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4129 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 22:49:47 +00:00