Commit graph

235 commits

Author SHA1 Message Date
nate
aa7ca4e703 Updating docblocks of deprecated methods, closes #3819, closes #3878
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6357 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-10 19:50:33 +00:00
gwoo
aeaeb97a49 updating helpers for multiple records, fixes #3874
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6356 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-10 18:50:31 +00:00
phpnut
cb53dc61b0 "Closes #2897, Built-in file validation.
Implemented Validation::extension(); and Vaidation::range();
Updated copyright notices in all files"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6296 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-01 22:18:17 +00:00
gwoo
fdeb41a826 updating FormHelper::inputs(), fixes #3770, tests updated
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6280 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-30 18:25:00 +00:00
phpnut
23ad8a4c7d "Closes #3651, Allow the specification of an interval in the generation of the minute select"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6246 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-25 06:45:48 +00:00
mariano.iglesias
d03e8d680f Properly formatting string for i18n
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6197 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 17:50:09 +00:00
gwoo
ea1b6581bc adding error to html tags array, adjust form helper to use it, closes #2088, closes #1022
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6196 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 06:37:30 +00:00
nate
10a2a446d3 Fixing FormHelper::select() with multiple checkbox option when all options are de-selected (Ticket #3716)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6191 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 04:20:35 +00:00
nate
5e7f3a8287 Implementing FormHelper::button(), with options for alternate button types (Ticket #2341)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6188 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 01:27:50 +00:00
gwoo
87b33dc12a updating formHelper label to only translate text if the default is used, closes #2314
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6184 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-21 19:53:10 +00:00
gwoo
e6bd38d7d1 updating formhelper dateTime, fixes 3753, tests added
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6182 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-21 19:09:46 +00:00
gwoo
f0f5d1ca09 updating FormHelper::submit() to handle images, deprecated FormHelper::submitImage(), added tests, closes #3741
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6161 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-15 18:46:02 +00:00
gwoo
98859c8c72 updating FormHelper to use fieldset instead of p. Inline styles are still used on these elements. We are not promoting the use of inline style, merely attempting to make life easier. Also, this adds a fieldset to multiple checkboxes if there is a group and also wraps the multiple checkboxes in divs and provides proper label for and input id attributes. also some changes to generic css to handle markup. Closes #3703
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6142 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-12 00:46:21 +00:00
gwoo
c7ddcab089 setting default time for FormHelper::dateTime(), adding boolean type to a select if pluralized var exists
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6136 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-08 19:31:47 +00:00
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