the_undefined
e5d7f5279e
Merged relevant test cases from 'alkemann' into tree test and made them pass, fixes #4493
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6939 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 03:03:44 +00:00
mariano.iglesias
775707838e
Fixing docbloc in Containable, fixing issue where no notices and invalid bindings were throwing PHP warnings, added tests, fixes #4683
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6938 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 02:40:13 +00:00
the_undefined
71790792d0
Applied patch by 'preloader', closes #4561
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6937 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 02:31:26 +00:00
the_undefined
abe853a978
Made Auth component find conditions more explicit, closes #4680
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6936 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 23:49:51 +00:00
the_undefined
521986b27f
Fixed problem with boolean values passed into connectNamed
...
Added documentation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6934 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 23:08:49 +00:00
the_undefined
847811701c
Fixed Router::connectNamed, added enhanced named parameter control, closes #4451
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6933 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 22:52:28 +00:00
mariano.iglesias
35391deff5
Renaming configs to config and fixing Acl test.
...
Bringing Configure test coverage up to 82%, the best that can be achieved without calling __loadBootstrap(true) which will cause constant collision.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6932 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 22:51:29 +00:00
nate
b7fbf8f080
Refactoring database transaction handling, fixing Model test for SQLite, all tests now pass
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6931 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 20:19:08 +00:00
mariano.iglesias
660d5bb804
Allowing CakeTestCase::assertTags() to receive strings as expectation.
...
Removing default value in AjaxHelper::options() and AjaxHelper::__optionsForAjax() since it always require a parameter.
Using Object::stop() instead of exit() in AjaxHelper::afterRender().
Bringing AjaxTest coverage to 88%
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6928 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 19:51:30 +00:00
DarkAngelBGE
032990a364
bringing the validator to 93% coverage,
...
adding default regexes for Validator::phone(), Validator::postal() and Validator::ssn() if no default regex is supplied, but also no country
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6927 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 15:47:35 +00:00
DarkAngelBGE
45ed8ffeff
bringing the file class to almost 90% coverage
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6926 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 14:48:48 +00:00
DarkAngelBGE
010a083d1c
bringing the folder class to 84% coverage
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6924 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 11:26:00 +00:00
DarkAngelBGE
f26d9b388e
adding numerical test case refs #4589 ,
...
adding tests for DbSource->length,
fixes #4150 ,
adding tests for DbSource->buildIndex(),
adding tests for DbSource->buildColumn(),
adding test for requestAction using a plugin,
adding DboSource->introspectType fixes #4224 , refs #4589 ,
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6923 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 09:22:42 +00:00
nate
6bed503b56
Refactoring schema handling for SQLite and Postgres drivers. Non-primary key indexes are now created properly. Fixed testing bugs in db drivers.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6922 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 06:42:36 +00:00
the_undefined
e1fc6ad5fd
Refactored parts of String::insert into String::cleanInsert
...
Added a html clean method and test cases
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6921 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 06:11:51 +00:00
the_undefined
550b85fdbb
Improved Inflector::slug, closes #4678
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6920 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 05:03:12 +00:00
nate
8313fef72d
Changing recursive setting in Auth user lookup query, allows $userScope to use joins, fixes #4665
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6919 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 04:49:54 +00:00
mariano.iglesias
a33cfd0b98
Added Containable behavior, a mix of the original Containable and Bindable behavior.
...
Allows find operations to define restrictions on what models to get based on the 'contain' parameter, including ability to override binding settings on the fly. Go through the test cases to get a crash course about some of the available functionality.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6918 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 04:36:09 +00:00
mark_story
f011839cfe
Update dbo_adodb.php. Passes 452 tests in model.test
...
fixes #4133
Added test for dbo_adodb as well
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6917 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 00:20:24 +00:00
the_undefined
d9e6ee6494
Fixed a problem in Configure causing the File engines default path to be ignored , closes #4673
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6916 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 21:47:06 +00:00
the_undefined
7e4224a1f9
Fixed a problem in App::__overload causing issues in PHP4
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6915 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 21:45:25 +00:00
joelmoss
64e68c9b7c
Text helper highlight method now handles HTML tags correctly. Closes #2242
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6912 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 18:45:24 +00:00
mariano.iglesias
05047a90b0
Making Model::resetAssociations public and changing tests that use it
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6909 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 16:23:46 +00:00
phpnut
10d555d5e2
"Adding additional tests for I18n class.
...
Removed unused code from the class.
Fixed use of invalid translations in a po file"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6907 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 06:05:08 +00:00
phpnut
638b06ff85
"Adding test coverage for I18n class.
...
Adding ability to change translations on the fly
Example: Configure::write('Config.language', 'locale');
Same setting can be used to define you own locale
Example: Configure::write('Config.language', 'somename');
Added ability to set additional directory paths for locale directory
Example: Configure::write('Locale.path', DS . 'directory'. DS . 'locale');
Fixed merging of core translations, if present."
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6905 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 00:48:34 +00:00
gwoo
8124d166ff
updating auth url for login actions
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6904 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 18:17:04 +00:00
phishy
6c44d00642
Fixed #4206 - lastError now works
...
Fixed #4181 - model sequence name now respected
added constraint() method to enable/disable
added truncate() to aid in test suite integration
hacked name() to work with ACL
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6903 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 15:42:13 +00:00
gwoo
8a236492a0
adding Object::stop(), updating auth and auth.test to use
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6901 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 15:23:00 +00:00
joelmoss
3d251e4145
Replacing vendor() function with App::import()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6900 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 08:41:39 +00:00
nate
d9a7170808
Adding validation message fixes for Model::saveAll() and hasOne associations, fixes #4561
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6898 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 06:03:33 +00:00
nate
0f1e075d68
Adding fix for Model::saveAll() with 'validate' => 'first' and hasMany records, fixes #4387 , adding test cases to disprove #4494
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6897 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 05:31:14 +00:00
gwoo
84739652c8
adding fix for windows paths in view, thanks renan`saddam for reporting and debugging
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6895 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 23:57:24 +00:00
TommyO
de086b1be3
Minor code cleanup, removing remnants from an older version that no longer apply
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6894 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 20:17:58 +00:00
gwoo
1623fa89f8
updating auth, fixes #4417 ajaxLogin rendering
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6893 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 19:20:13 +00:00
TommyO
52037d15e4
Allow afterSave() callbacks to modify value of a data field, as per ticket #2465\nNecessary tests included
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6889 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 15:37:55 +00:00
the_undefined
ab0a607189
Refactored Set::reverse and tweaked the expectation schema for consistency, fixes #4643
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6888 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 14:48:49 +00:00
the_undefined
bf107d1886
Fixed admin routing redirect in AuthComponent
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6886 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 07:06:22 +00:00
the_undefined
52245a059f
Closes #4156
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6878 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 04:00:21 +00:00
the_undefined
ea9e91218e
Fixing bug in Model::saveField, closes #4511
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6877 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 03:16:36 +00:00
the_undefined
d039ad32d4
Allowed for matching empty elements
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6875 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 02:21:51 +00:00
nate
b489bb1470
Cleaning up PagesController, fixes #4640
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6871 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-14 21:34:26 +00:00
gwoo
18b627636b
updating cake.test.php, fixes #4638 . updating cake.php, fixes #4648 (with tests), updated Cache
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6870 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-14 19:43:55 +00:00
the_undefined
72c37d429e
Improved String::insert by support placeholders with after sequence during cleanup
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6869 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-14 16:31:44 +00:00
the_undefined
7308c3e5d4
Fixed bug in String::insert
...
Refactored and improved String::insert cleaning process
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6868 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-14 15:35:36 +00:00
joelmoss
09ebd9cbe6
Paginator Helper prev and next methods now use the Html::tag helper method, allowing you to pass a tag option to specify what HTML tag the disabled links should be wrapped in. Defaults to div. Fixes #3991
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6862 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 23:35:47 +00:00
the_undefined
dd7aa25a20
Made custom save $options available throughout all filters and callbacks
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6861 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 23:34:59 +00:00
joelmoss
9a4c186ccd
Html::tag now accepts $attributes as a string, in which case, it will be used as the tags class name.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6859 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 23:09:37 +00:00
joelmoss
65454882f3
Created Html::tag helper which allows you to create any HTML block tag. Html::div now uses this method.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6858 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 23:04:52 +00:00
the_undefined
fb7ac680b0
Made sure DboSource always has a prefix setting, closes #4601
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6857 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 22:53:44 +00:00
the_undefined
825eb48508
Fixed missing view path for plugins, closes #4244
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6856 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 22:18:30 +00:00