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
phpnut
51baf42d62
"Changing Validation class to be a static class"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6203 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 21:03: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
698af0115c
Adding test case for XML class, conversion from Set object (Ticket #3696 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6193 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 05:08:03 +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
nate
e6af521843
Implementing Validation::equalTo() (Ticket #3594 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6187 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-21 23:39:52 +00:00
gwoo
5dd9847881
changing Set::map() to accept true as second param. This will maintain the structure of the array coming in. related to #3713 , changes [6185]
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6186 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-21 20:54:10 +00:00
gwoo
b4c3be2ccd
updating set, pass second param as false if you do not want the array flattened, fixes #3713
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6185 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-21 20:12:43 +00:00
gwoo
ac4896fabd
sanitize test added, closes #3488
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6183 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-21 19:42:08 +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
9f8b4b2cd5
updating scaffold view handling
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6181 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-21 18:14:10 +00:00
gwoo
ef3b73d690
adding plugin task, closes #965
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6179 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-21 02:54:45 +00:00
gwoo
60f4dd360d
updating View and Controller::flash, fixes #3749 , tests added
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6177 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-20 01:19:19 +00:00
nate
cd8c26bda7
Allowing models to save empty records if they have a created, updated, or modified field (Ticket #3501 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6173 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-19 02:05:15 +00:00
nate
570e71f62a
Adding fix for Router named arguments where arg value contains the separator key (Ticket #3752 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6172 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-19 01:49:25 +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
gwoo
dcb9996b43
updating view loading helpers, fixes #3744 , tests added, uses Inflector::slug() for element cache file name, uses renderElement for dump of cakeDebug
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6165 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-17 07:28:53 +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
gwoo
01b52fec4a
updating schema, fixes #3718 , added $cache param to Configure::listObjects(), updating view tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6157 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-15 02:06:10 +00:00
gwoo
67bbb0e93e
refactoring view classes, added ScaffoldView that extends ThemeView in scaffold.php, adding tests, adding test_app with files
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6155 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-14 22:20:44 +00:00
nate
481cbf521e
Adding fixes to Router::normalize() when called with empty parameter (Ticket #3734 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6152 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-14 15:09:05 +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
phpnut
1e6665909b
"Fixes #3101 , Model::deconstruct() corrupting fields
...
Fixes #3726 , Saving date, datetime, and time into database (form->input)"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6148 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-14 04:21:58 +00:00
nate
9d58121205
Removing trailing slash from normalized URLs in AuthComponent, moving AuthComponent::_normalizeURL() to Router::normalize(), refactoring (Ticket #3042 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6145 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-13 07:03:59 +00:00
nate
6c719eca1a
Removing Model test case 2
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6144 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-13 04:05:04 +00:00
gwoo
16ee2d2661
fixing fieldSuffix in Helper::setEntity(), closes #3724 added tests.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6143 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-12 04:08:19 +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
b6b2696488
allowing RequestHandler to load helpers for extension from any path, closes #2230
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6141 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-11 03:01:46 +00:00
nate
4689258464
Adding REST route matching fixes (Ticket #3665 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6135 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-08 16:59:57 +00:00
nate
78b1452fca
Adding assertions to model test case
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6134 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-08 09:01:14 +00:00
nate
e56b92255f
Adding lower bound for page numbers in Controller::paginate() (Ticket #3683 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6133 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-08 08:54:27 +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
nate
c2db2a3936
Adding test case for Model::saveField() (Ticket #3687 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6131 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-08 08:22:20 +00:00
nate
5c11da9c3d
Adding whitelist-enabled fixes for TreeBehavior (Ticket #3472 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6130 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-08 08:09:46 +00:00
mariano.iglesias
91ecdfdf15
Fixing tests for AjaxHelper and PaginatorHelper since code blocks generated by JavascriptHelper are now XHTML complaint
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6129 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-08 07:10:19 +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
5cb90731f2
"Closes #3664 , Some units tests for Set::pushDiff();"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6126 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-07 17:27:45 +00:00
gwoo
f3d0b54cb3
fix for Helper::setEntity(), tests added
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6125 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-07 10:55:42 +00:00
mariano.iglesias
7d8bf76744
Adding tests for RssHelper::items
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6124 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-06 20:05: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
872dfbfcef
"Correcting Helper::setEntity() check if $parts[0] matches current model
...
Added tests for fix.
Adding escaping of \\ in FileEngine::write();"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6119 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-06 07:43:19 +00:00
gwoo
adcba2cc2d
updating Helper::value, adding some tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6118 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-06 01:16:14 +00:00
phpnut
4dbd53e3d9
"Fixes #3645 , DboSource::conditions() bug ($conditions = null, $where = false)"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6107 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-02 23:39:43 +00:00
phpnut
13530f42dc
"Correcting typo"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6106 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-02 23:03:13 +00:00
phpnut
61eebea0f4
"Refactoring Controller::paginate()"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6105 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-02 22:58:23 +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
nate
73d4844b22
Adding log file creation test
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6103 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-02 22:40:23 +00:00
nate
6a8c1474e0
Adding fix and updating test case for Model::find('count') (Ticket #3581 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6100 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-02 21:39:43 +00:00
nate
00dc6dedb5
Adding fix for Controller::paginate() when default model is loaded from a plugin (Ticket #3660 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6098 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-30 22:27:43 +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
86dafa3009
updating Set::map() to return an array of objects if the key is numeric. Changed __identity__ to _name_, updated tests.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6091 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-27 17:57:59 +00:00
phpnut
d13c836ae9
"Correcting tests for php 4"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6090 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-27 02:14:24 +00:00
gwoo
21bea5ffb5
updating Set class and added valid test, fixes #3652
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6088 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-27 00:33:10 +00:00
phpnut
c6f9c4bdb1
"Fixes #3589 , Model::deconstruct() undefined index notice with $data['meridian']
...
Fixed loading of classes in Model test"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6086 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-26 18:00:06 +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
ad95d87d6d
updating schema test
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6075 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-25 05:34:58 +00:00
phpnut
de8e7d8b01
"Closes #1854 , Core.po not loaded when using /app/locale/..../default.po
...
Closes #3539
Fixes #3611 , Cannot redeclare loadmodels
Fixes #3622 , loadControllers() and loadModels() look in wrong folders for AppController resp. AppModel
Added trigger_error to all deprecated functions in basics.php
Refactored I18n class to remove debug_backtrace() usage in basics.php, all translations should be placed in a default.po or .mo file from this point forward.
_ _d() function should be used if domain specific translations are used.
Core translations can be placed in app/locales/{lang}/LC_MESSAGES/core.po or .mo these will now be merged with the specified language strings from default.po will replace the core message strings
All translations are now cached to improve performance.
"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6065 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-23 08:16:23 +00:00
phpnut
f80e92825c
"Fixing Configure tests with recent changes to the Configure class"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6061 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-23 01:18:17 +00:00
gwoo
eba8f6770b
updating Sanitize::clean() odd spaces, fixes #3576
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6046 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-22 17:05:40 +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
c83ae0e1a9
"Fixing path search for fixtures in the test suite"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6039 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-22 01:55:50 +00:00
gwoo
01230b92b1
refactoring Set::map() and reverse, all tests passing
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6035 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-20 21:04:58 +00:00
gwoo
d0f2aaaa62
fixing test for Set::reverse()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6033 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-20 18:33:40 +00:00
gwoo
6fe654cd9e
adding test for Set::reverse()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6032 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-20 18:20:47 +00:00
the_undefined
effc9d4029
Added initial cookie jar support to HttpSocket
...
Added test coverage for it
Fixed bug in HttpSocket::buildCookies()
Fixed 'Connection: close' not closing the connection bug
Fixed some issues with HTTPS connections
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6031 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-20 17:19:20 +00:00
phpnut
be493341fa
"Correcting svn properties"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6030 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-20 04:51:06 +00:00
gwoo
fcdc5ad640
adding support for 0 key in multiple records in View::entity(), added tests to Helper test case
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6025 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-19 14:08:37 +00:00
gwoo
31fac597bd
adding test to dispatcher, closes #3613
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6023 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-18 22:52:15 +00:00
the_undefined
0eed95dda2
Added $mode parameter to HttpSocket::buildHeader
...
Implemented an initial not yet standards conform cookie parse / build function
Added support for a $chars parameter in token escaping
Modified HttpSocket::parseHeader()s default behavior for duplicate fields
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6022 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-18 20:57:42 +00:00
the_undefined
cc3614804f
Fixed some https / magic port recognition issues with HttpSocket::url
...
Added some more tests for it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6021 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-18 18:55:50 +00:00
the_undefined
922ca3b7cb
Implemented a HttpSocket::url function
...
Fixed some problems with HttpSocket::request
Greatly improved test coverage on HttpSocket::request
Added test for HttpSocket::url
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6020 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-18 16:51:11 +00:00
phpnut
b0a1b18210
"Refactoring App class.
...
Added Configure::corePaths() to return paths to core library install.
Added additional tests for App::import()"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6019 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-18 07:18:25 +00:00
the_undefined
b3afc463ac
Added a new $altKey parameter to normalizeFindParams
...
Refactored the unit test for it and added more samples
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6018 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-18 06:14:27 +00:00
the_undefined
266d7ba738
Fixed test case for normalizeFindParams
...
Slightly refactored normalizeFindParams
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6017 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-17 23:31:15 +00:00
nate
6f38be85f4
Laying groundwork for Model::find() refactor code
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6015 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-17 22:46:55 +00:00
nate
b3e4b64aa6
Adding Helper/FormHelper fixes for field names which are like model names (Ticket #3588 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6011 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-17 04:27:24 +00:00
nate
3c7d0e90ee
Adding test to disprove Ticket #3506 (DboSource::order())
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6010 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-17 03:57:15 +00:00
phpnut
c000940e36
Closes #2119 Only define clone() in PHP4 when it hasn't been already defined.
...
Closes #2213 , Support multiple plugin paths.
Closes #2234 , filepaths to behavior classes should be cached in class.paths.php also
Closes #2345 , ability to group components into subfolders
Closes #2645 , Improvement to basic.php for class loading.
Fixes #3526 , Cache::write, when using just the config name, it fails.
Fixes #3559 , loading plugin model as assoc don't work.
Closes #3567 Controller Folders (Note this does not need routing to work, but controller names can not conflict with others in the same application so naming must still be unique)
Fixes #3579 , email.php component: Parse error with php 4.
Adding new class and file importer.
Updated most of the core to use the importer.
Added ClassRegsitry::init() that will create and instance of an object and store it in the registry.
Deprecated most of the load functions in basics.php
Plugin model loading now forces using the dot notation, to use models within a plugin, all the model associations must be in the PluginName.Model syntax, if this is not used, the plugin will look for the models in the main app/models directory first, if not found then it will search the plugin directories recursively until it finds a model.
var $belongsTo = array('SomeModel'); will look for some_model.php in the app/models
var $belongsTo = array('MyPlugin.SomeModel'); will look for some_model.php in my_plugin/models
var $belongsTo = array('MyPlugin.MyPlugin', 'SomeModel'); will used my_plugin/models/my_plugin.php and app/models/some_model.php
The controllers of the plugin will still look for the default models inside the plugin if var $uses is not set:
var $uses = array('SomeModel'); will look for some_model.php in the app/models
var $uses = array('MyPlugin.SomeModel'); will look for some_model.php in my_plugin/models
var $uses = array('MyPlugin.MyPlugin', 'SomeModel'); will used my_plugin/models/my_plugin.php and app/models/some_model.php
All of the above will work between plugins and main app
These changes also allow placing model and controllers is sub directories
Removed old class.paths.php file generation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6001 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-16 09:35:19 +00:00
mariano.iglesias
58d9d38be1
Adding tests for input magic with multiple checkboxes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6000 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-16 05:27:16 +00:00
mariano.iglesias
499fdf88b5
Adding tests for FormHelper::select() to test multiple checkboxes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5996 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-15 20:07:46 +00:00
nate
a58f675ab9
Adding test cases for Set::map()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5993 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-14 22:29:14 +00:00
phpnut
dbe9beb6cb
Refactoring [5988]
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5989 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-12 17:31:37 +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
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
phpnut
b867f832c1
Refactoring return of Set::map(); and Set::reverse();
...
Added new test cases to SetTest.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5979 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-11 23:49:30 +00:00
gwoo
3feac9a768
updating model Cache engine.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5975 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-09 08:00:59 +00:00
gwoo
e3e02ba775
updating test cases so ALL tests group will run
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5974 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-09 05:13:12 +00:00
gwoo
2edfe3dd53
updating Controller::redirect(), closes #3522 , deprecated Controller::cleanUpFields, see Model::deconstruct()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5973 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-09 02:34:00 +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
d303a64f65
refactoring Helper::setEntity, adding test cases
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5970 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-09 00:17:44 +00:00
nate
58ead8aa5c
Adding Helper test for suffixless fields
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5966 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-08 00:37:55 +00:00
mariano.iglesias
2bc997dcdf
Adding tests for non existing nor validated fields in models per gwoo request
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5964 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-07 23:01:58 +00:00
mariano.iglesias
9b01ce7066
Adding support for Set::countDim() to count dimensions in all branches of an array, not just the first element. Set second parameter of countDim to true to get the real dimension of the array (regardless if the deepest depth is on first element).
...
Adding better documentation and test cases for countDim
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5960 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-06 18:54:32 +00:00
phpnut
e48e49073b
Fixes #3486 , Incorrect rule in Inflector::singularize()
...
Added additional test for Inflector
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5957 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-06 05:12:37 +00:00
nate
59b726e312
Updating FormHelper test case for Ticket #3534 and Ticket #3533
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5954 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-06 00:27:20 +00:00
gwoo
23467f8800
updating Dispatcher::baseUrl() and added tests, fixes #3527
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5952 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-05 14:56:21 +00:00
nate
43ed8db5ea
Cleaning up test cases
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5946 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-04 18:57:23 +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
nate
506cba0dc9
Removing dependency on default database connection from all test cases
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5944 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-04 18:05:00 +00:00
gwoo
5ccea91b91
updating error handling: messages, templates and css, updating home page messages
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5943 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-04 07:03:57 +00:00
gwoo
6a7b7a5c36
updating dispatcher, added test, fixes #3504
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5940 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-03 16:39:29 +00:00
gwoo
b1b8fcddd2
adding named to params so the proper args get passed to the action, updated tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5932 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-31 03:53:41 +00:00
nate
9b578c5bb1
Adding tests for incorrectly matched routes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5931 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-30 22:41:55 +00:00
nate
1ab95d703f
Adding test case to explain how route prefix matching functions (Ticket #3494 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5924 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-30 14:49:03 +00:00
nate
d913e88ef5
Adding required route matching for passed params in reverse routing, adding fix for matching on optional route parameters (Ticket #3355 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5923 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-29 21:33:20 +00:00
nate
8f12e402df
Fixing ACL test, misc ACL lookup optimizations
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5916 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-29 00:17: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
fed7d601a2
Updating test cases
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5910 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-27 20:33:52 +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
phpnut
f41aa80b78
Removing vars that are no longer used.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5904 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-27 01:32:17 +00:00
phpnut
8d6599c34b
Fixing bug for related records not being returned when using $recursive > 1.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5902 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-26 08:40:10 +00:00
phpnut
28d6ef1688
Fixes #3466 , Validation::url() fails for some common urls. Anything without the protocol is not a valid url so part of this ticket is invalid
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5901 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-25 03:55:41 +00:00
mariano.iglesias
9b57b59c28
Specifying an array of IDs in second model data to replicate #3455
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5896 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 22:08:19 +00:00
phpnut
7b914bab9f
Correcting tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5893 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 17:04:14 +00:00
mariano.iglesias
6591c8f79b
Adding test for #3455 replicating issue, Secondary model array in model data causes corruption
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5892 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 16:29:50 +00:00
mariano.iglesias
34a7d667db
Adding secondary data for testCreationWithMultipleDataSameModel
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5891 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 16:17:53 +00:00
mariano.iglesias
ec76d6aac3
Changing names for instance vars in test added for #3455
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5890 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 16:10:20 +00:00
mariano.iglesias
28b7fb5653
Reenabling disabled tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5889 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 16:07:36 +00:00
mariano.iglesias
8b7e01552c
Adding another test for #3455 , Secondary model array in model data causes corruption
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5888 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 16:06:00 +00:00
gwoo
020e817815
updating router, adding test case fixes #3440
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5887 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 15:09:40 +00:00
phpnut
31243741f9
Fixes #3442 , Sanitize escape NULL becomes "UL"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5885 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 11:31:32 +00:00
mariano.iglesias
304bc01a9d
Adding test for #3455 , secondary model array in model data causes corruption
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5884 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 03:32:34 +00:00
the_undefined
aca88deda4
Updated sample data / sample data extraction routine
...
Implemented initial MagicFileResource class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5883 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 02:59:59 +00:00
mariano.iglesias
3ced96f8be
Fixes #3446 , using regular expression testing when testing FormHelper::checkbox
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5882 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 02:51:15 +00:00
nate
076f780ed6
Updating Model::findNeighbours() to allow array conditions and field lists (Ticket #1176 and Ticket #3231 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5880 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-23 13:41:25 +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
phpnut
94d1899fd4
Fixes #3441 , Sanitize::clean() doesn't pass options when doing recursion on array data
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5872 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 23:34:20 +00:00
phpnut
cb6a38abaf
Fixes #3430 , Query broken when model having associations linked to model has same alias to a different model
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5871 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 22:58:38 +00:00
phpnut
89185ace25
Adding ClassRegistry::flush() to reset the registry
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5868 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 20:58:55 +00:00
gwoo
a9a9a824e2
update Cache to specify key paths with dot syntax, like Cache::write('my.key.is.here', $data);
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5866 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 20:39:36 +00:00
mariano.iglesias
aaca183da1
Adding test case for #3430 , where different belongsTo bindings that use same class but different alias name in various models would break under certain circumstances
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5865 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 20:20:48 +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
7ca924d661
Closes #3362 , Changed self associated models so they no longer reference the single instance of the original model.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5845 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 02:11:58 +00:00
gwoo
9ba2857f0d
updating folder test
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5838 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-21 23:37:31 +00:00
gwoo
acdeadde01
adding router test, closes #3425
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5835 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-21 21:51:40 +00:00
nate
c8b6269a64
Refactoring find*() methods into Model::find(), i.e. Model::find('all', array('conditions' => ...)), findCount()/find('count') results are no longer filtered
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5834 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-21 18:34:23 +00:00
AD7six
7addec3dcc
Removing invalid testMoveLast which relied on incorrect logic in the tree behavior
...
Adding testSaveNoMove to address [ticket:3409 TreeBehavior moves item on save of existing item]
Adding tearDown code to aide debugging in the future.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5829 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-21 07:50:51 +00:00
phpnut
d923ffbd94
Reverting changes made to model.test.php in [5822]
...
Reverting changes made to model.php in [5815]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5827 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-21 03:44:26 +00:00
gwoo
2eec6dc943
allowing beforeFilter or Component::startup() to change params. closes #1643 . Removed Controller::$namedArgs, passedArgs provides the same functionality, updated dispatcher test.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5824 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-20 23:59:46 +00:00
mariano.iglesias
cfc6a21316
Adding test that thows failing behavior with null values when calling Model::set()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5822 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-20 21:09:24 +00:00
phpnut
e1c26c9948
Fixes #2967 , Missing quotes cause SQL errors in some cases
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5816 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-20 11:45:09 +00:00
phpnut
7ebb27fccc
Fixes #2982 , TreeBehavior::verify, non-portable SQL, badly quoted conditions
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5806 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-19 21:43:48 +00:00
phpnut
5cb63a6460
Fixes #3418 , Model throws warnings when trying to save an empty array
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5804 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-19 21:05:34 +00:00
phpnut
8268ba8c59
Updating AjaxTest with changes made for #3271
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5798 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-19 08:34:51 +00:00
phpnut
34380bf243
Fixes #3411 , failing test when $data has more than one models data.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5789 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-19 03:33:19 +00:00
mariano.iglesias
7305d48215
Adding tests for #3288
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5782 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-17 21:45:24 +00:00
phpnut
a207a95893
Fixes #3187 and #3230 , Model -> save issue with fieldList and id
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5781 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-17 21:19:30 +00:00
phpnut
5c06492be7
Fixes #3065 , Ambiguous columns in Tree->children()
...
Removed notices from TreeBehavior
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5780 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-17 18:10:23 +00:00
mariano.iglesias
a1958bf820
Adding tests for i18n plurals, closes #3399
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5779 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-17 17:20:23 +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
998ee569e7
Fixes #2902 , DB_ACL::allow allowing all when $actions is not an array.
...
Fixes #2988 , AclComponent check() does not inherit permissions.
Fixes #3022 , Inconsistent table alias quoting crashes Acl node lookup with PostgreSQL.
Fixes #3129 , Console ACL Shell ACO View Broken
Fixes #3176 , Problems with ACL support on Microsoft SQL Server.
Closes #3311 as invalid, DboSourceTest::testArrayConditionsParsing tests added
Fixes #3312 , DB_ACL::check() fail returning right permission
Fixes #3344 , Model->field adds incorrect condition under certain circumstances.
Fixes #3400 , Cookie Component: When reading a non-existing key it throws a notice.
Fixes #3407 , Since [5768] CookieComponent throws warning when used in beforeFilter().
Closes #3401 , Added form test to ensure $Form->fields array is what the security component requires.
Updated AclComponentTest
Merged changes in app/ to cake/console/libs/templates/skel
Fixed generated link to Run More Test after running Group > All tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5776 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-17 12:51:17 +00:00
gwoo
be65aa8ee3
adding lock to File class, refactoring FileEngine
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5775 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-17 07:34:16 +00:00
nate
dcdfa005cf
Adding Paginator test case for disabled links (Ticket #3253 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5774 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-17 06:20:38 +00:00
nate
4e795bc22c
Adding test case for DboSource::conditions() (Ticket #3373 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5773 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-17 06:13:37 +00:00
phpnut
bf273081f0
Closes #3238 , added ability to turn of check for HTTP_USER_AGENT by using Configure::write('Session.checkAgent', false); in a beforeFilter().
...
Added test for changes.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5770 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-17 00:40:47 +00:00
gwoo
74dd4b4832
updating file class and test
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5769 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-16 09:48:59 +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
b73aa20784
test case for rss helper fix
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5766 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-16 01:06:31 +00:00
phpnut
8f91654b07
Closes #3307 , added tests to show ticket is invalid. No changes are needed to inflect categoria <> categorias
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5762 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-15 16:55:14 +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
nate
b61f559030
Adding FormHelper test for multiple select elements
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5757 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-14 22:55:37 +00:00
gwoo
4579ce68ea
updating dispatcher test for Jippi
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5755 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-14 16:53:36 +00:00
gwoo
1eea608e0c
updating Acl to use Configure, adding config stack to CacheEngine, adding notices for defines to Configure, modifying bootstrap for Cache::config() updating tests for acl, auth, and cache.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5752 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-14 01:09:21 +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
the_undefined
e7bccfe7a8
Implemented File::offset
...
Added test for it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5748 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-11 07:49:57 +00:00
the_undefined
6dc279c7b7
Added support for $bytes parameter in File::read
...
Re-factored write function
Improved test coverage of File class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5747 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-11 07:19:06 +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
the_undefined
28bc0879b2
Added test coverage for File write / delete
...
Removed inactive testOperations function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5741 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-09 18:34:41 +00:00
the_undefined
363d07ddb7
Deactivated test for uncompleted read functionality
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5738 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-09 00:07:18 +00:00
the_undefined
895eeeae72
Implemented new File functions: open, close, opened
...
Added new $bytes, $mode parameters to File::read()
Added test cases for new functions and the existing read function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5736 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-09 00:00:46 +00:00
gwoo
356fd587cd
updating exists, fixes #3368 , test added. thank you maular
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5733 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-08 17:43:14 +00:00
the_undefined
8963c16c77
Fixed bug in MagicDbTestData class
...
Added support for serialized sample arrays
Finished MagicDb parsing implementation
Began to implement analyzing
Updated tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5732 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-08 01:25:33 +00:00
nate
366cb23a64
Adding assignment operator test for DboSource::order() (Ticket #3352 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5731 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-07 14:13:59 +00:00
nate
c15b36905a
Adding custom URL test for FormHelper::create()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5730 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-07 14:13:03 +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
gwoo
1d46e068d3
adding test to router
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5723 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-04 23:29:57 +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
mariano.iglesias
24eb2d357c
Fixing wrongly forced ID in test
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5721 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-04 18:41:30 +00:00
mariano.iglesias
792ba68b35
Restoring commented test functions
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5719 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-04 18:16:44 +00:00
mariano.iglesias
556ae6c161
Adding test to showcase notice when create has no ID and security component is used
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5718 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-04 18:15:48 +00:00
gwoo
84f8c78e05
updating mysql, postrges tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5717 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-04 15:54:59 +00:00
nate
a1fb0073a3
Adding MSSQL field quoting fix (Ticket #3203 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5715 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-04 05:04:44 +00:00
phpnut
9a4d314b81
Closes #707 , added Inflector::slug() to return a string with all spaces converted to $replacement and non word characters removed.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5712 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-04 02:17:40 +00:00
gwoo
2ef118c3c4
replacing define CACHE_CHECK with Configure Cache.check, updating Model::exists()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5707 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-01 16:49:37 +00:00
gwoo
bf651a279e
updating controller fixes #3191
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5702 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-30 19:30:48 +00:00
gwoo
66bfa5631a
updating DboMysql, fixes #3269 , fixes #3192 , fixes #3266 , adding tests for DboMysql, DboPostgres, DboMssql
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5701 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-30 18:13:46 +00:00
gwoo
4f8f7a7045
refactoring cache engines, adding tests, update configure fixes #3082
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5700 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-30 07:45:34 +00:00
gwoo
18ab04b32b
refactor Dispatcher::__getController to pass all tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5697 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-27 10:58:06 +00:00
gwoo
ad6a0c12c5
refactor args generation
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5694 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-26 09:49:01 +00:00
phpnut
603ed0e39c
Initial start of Unicode support, I may move this handling of this to a unicode class.
...
Implemented multi-byte methods for:
String::strpos();
String::stripos();
String::strtoupper();
Added test cases for String::utf8() String::ascii() String::strpos() String::stripos() and String::strtoupper()
Corrected file encodings.
Added loading of configurations from cake/config
Added specifc case folding files to cake/config/unicode/casefolding
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5691 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-24 23:49:54 +00:00