Commit graph

485 commits

Author SHA1 Message Date
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
gwoo
66fc807b93 note to self, remember to make a diff first
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6238 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-24 02:18:00 +00:00
gwoo
1ee0b564e1 adding TimeHelper::toQuarter() with range, closes #3121
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6237 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-24 02:16:20 +00:00
mariano.iglesias
9160660f58 Allowing AjaxHelper::observeForm to receive frequency setting for periodical observations.
AjaxHelper::drop and AjaxHelper::dropRemote can also accept arrays in their 'accept' setting.
Adding more tests for AjaxHelper.
Making AjaxHelper::autoComplete accept only dot notation fields. Adding callback setting for autoComplete.
Closes #2438, closes #3038, closes #3058, closes #3316.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6236 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-24 01:45:39 +00:00
mariano.iglesias
12075ec7c1 Adding contentType, encoding and postBody AJAX options.
Adding onCreate (specify 'create' in $options) and onException (specify 'exception' in $options) callbacks. All callbacks should be specified using their aliases (so use 'complete' => 'completeFunc();' for onComplete callback, etc.)
Adding tests for AJAX helper.
Closes #1244, closes #2644, closes #2856.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6234 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-23 21:08:54 +00:00
phpnut
46f0615479 "Fixes #3549, AjaxHelper::sortable update and change invalid options for script.aculo.us"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6222 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-23 10:27:48 +00:00
phpnut
cf87b90bbc "Fixes #3691, HTML Helper returns incorrect url from when <cacke:nocache> is used"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6212 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-23 07:06:31 +00:00
gwoo
a2624df5f2 fixing fail in Html::meta(); and adding ClassRegistry::flush(); to fix no_database test group.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6207 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-23 01:07:10 +00:00
gwoo
eebdb12eaa updating HtmlHelper::meta(), closes #3223, #3224, #3225, tests added
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6206 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 23:36:24 +00:00
gwoo
b99ac8de46 adding more extensive formating options to NumberHelper::currency() with tests, closes #3532
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6204 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 22:01:38 +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
gwoo
81b074cf1f adding Paginator::first() and last() methods, also adding them to numbers, tests added, closes #3709, closes #3208, closes #3465, closes #2412, closes #2954
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6195 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 06:03:48 +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
gwoo
98f454bc8a updating asset handling, closes #3149 To use compression for css and js files in vendors use Configure::write('Asset.compress', true);
Also, closes #1897 serving css and js from plugin vendors folder for paths within that plugin. Tests added.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6189 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 01:37:46 +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
mariano.iglesias
d5a8cd3c22 Changing valid XHTML comment of script blocks and adjusting tests, fixes #3746
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6166 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-17 17:02:54 +00:00
nate
68b024e187 Enabling custom URLs in HtmlHelper::image(), and adding FormHelper::file() tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6163 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-15 23:46:56 +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
nate
003aaec870 Adding PaginatorHelper::url() (Ticket #2493), refactoring Paginator, eliminating extra space in <a /> tags
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6151 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-14 15:07:25 +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
nate
0b9f2c1b9d Array handling fix for Paginator and additional test cases
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6132 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-08 08:46:01 +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
mariano.iglesias
5adbf2d75b By default codeBlock generates XHTML strict valid blocks.
All options to JavascriptHelper functions are now set via array. Functions that use codeBlock (such as event) also allow options for codeBlock to be sent in $options array.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6127 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-07 21:24:05 +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
nate
a61b32c91e Adding fix for AjaxHelper::form() (Ticket #3582)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6104 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-02 22:42:59 +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
101ebba716 updatin HtmlHelper::css() to accept .css?1234, closes #3503
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6080 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-25 20:17:25 +00:00
gwoo
28ada1f684 updating HtmlHelper::nestedList() to accept string type ul/ol as second attribute, also closes #3144
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6079 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-25 20:12:51 +00:00
gwoo
072495f5e1 updating TextHelper::autoLinkUrls(), fixes #3597
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6043 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-22 05:36:20 +00:00
phpnut
18c7a00a47 Correcting issues with Sessions and Controller::redirect()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5999 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-16 03:52:14 +00:00
phpnut
2726d97cfb Correct location of the AppHelper file
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5998 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-16 01:11:30 +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
c7307742e2 Adding fix for Undefined variable: _SESSION
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5986 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-12 05:31:35 +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
phpnut
11d295eb0c Fixes #3507 Session Security.level "high", session destroyed on media 404.
Added ability to turn off HTTP_USER_AGENT check in a Controller::beforeFilter(),
Added id() to Session helper and component to return current Session id, the component accepts a $id parameter to force setting the Session id which must be called in a Controller::beforeFilter().
Sessions id are not longer renewed if a request is from Ajax, or from requestAction();
When Security.level (1.2) or CAKE_SECURITY (1.1) is set the 'high' renewing of Session id only happens if request is 2 seconds after the last request.
Added $_Session[Config][timeout] which forces renewing Session if request are within the 2 second limit and over 10 request.
If an application is expected to make multiple request (more than 10) to the server in a single proccess, Configure::write('Security.level', 'medium'); (1.2) or $this->Session->security = 'medium'; (1.1) should be used in a beforeFilter for the specific methods.
1.2 Sessions allow using CacheEngines to store Sessions, be aware that using memory caching as the only storage of Sessions is not reliable. Further work will be done to allow using the CacheEngines with database Sessions, etc.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5982 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-12 01:36:20 +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