mark_story
9da3e638df
Applied Enhancement submitted by 'chjunior', month display can be set to numbers or translated text. Closes #4327 . Tests also updated.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7039 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-24 04:00:26 +00:00
mark_story
0c164efb21
Added missing params to FormHelper doc blocks, marked private methods.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7038 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-24 02:57:48 +00:00
gwoo
92514422e4
updating datasource to use Cache engines.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7037 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-24 02:08:56 +00:00
mariano.iglesias
060bbf1caf
Adding test to show proper use of allowEmpty on validation rules, closes #4749
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7036 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 20:46:42 +00:00
nate
6a99a6ba60
Changing Model::getColumnType() to return null for unknown fields, allowing for type introspection, updating docblock for Model::hasField(), fixes #4751
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7035 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 20:40:50 +00:00
gwoo
7889668b6e
disable callbacks in view cache by default
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7034 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 18:52:49 +00:00
nate
082aedc0b3
Adding check for domain name length in Validation::url(), thanks AD7six
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7033 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 17:50:24 +00:00
AD7six
fdc26e38aa
adding test case to address #4747
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7032 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 17:46:37 +00:00
gwoo
f7d07012dd
cleaning up some deprecated code. renderElement is deprecated, but a the notice was removed for this release. Notice will be thrown in next release and method will be removed in the following release. Refactor of View Caching, along with addition of enabling beforeFilter and component initialize/startup callbacks. Use {{{
...
//set for the individual action
var $cacheAction = array('view' => array('duration' => '+1 hour', 'callbacks' => false));
//globally disable callbacks for all actions
var $cacheAction = array(callbacks' => false, 'view' => '+1 hour');
//per method
$this->cacheAction = array('duration' => '+1 hour', 'callbacks' => true);
}}}
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7031 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 17:43:13 +00:00
mariano.iglesias
9c722b6999
Improving field detection in Containable. paginate() now avoids sending recursive to find calls when it is not explicitly set. Adding more tests to Containable to show how to paginate, fixes #4746
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7030 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 16:12:14 +00:00
gwoo
df5fd8160f
fixing undefined paths variable in console
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7029 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 15:17:13 +00:00
mariano.iglesias
88b16a1d6c
Updating model test for slow DB connections
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7028 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 14:48:55 +00:00
the_undefined
54715db5dd
Made DboSource::length return string for float-like values, added a bunch of tests, fixes #4739
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7027 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 07:09:16 +00:00
nate
c6e5ed8aba
Adding test for ACL node creation with parent ID, disproves #4098
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7026 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 06:16:50 +00:00
nate
57473a4633
Fixing XML test for case where App.encoding is empty
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7025 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:53:49 +00:00
gwoo
deb972d13d
fixing theme view test usage of error handler
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7024 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:37:43 +00:00
gwoo
d5f71ccadf
fixing view test usage of error handler
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7023 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:26:33 +00:00
the_undefined
08c5472a3e
Fixed syntax error, closes #4742
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7022 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:24:58 +00:00
the_undefined
52bae8a7bf
Made form helper pick up field definitions outside the current context
...
Made form helper handle maxlength for float fields properly, fixes #4724
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7021 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:14:57 +00:00
nate
7402680cc1
Misc code formatting and whitespace fixes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7020 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:11:41 +00:00
gwoo
d3f772cfb4
updating configure
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7019 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 04:46:03 +00:00
mark_story
6384da5b53
View::beforeLayout and View::afterLayout now implemented closes #4722
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7018 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 02:16:36 +00:00
joelmoss
cedb20e612
Replaced all instances of renderElement() with element(). Fixes #4740
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7017 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 23:04:36 +00:00
nate
bccfd41291
Adding creation fix for ACL join records, fixes #4478
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7016 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 19:16:54 +00:00
nate
f2ea3c8bb0
Refactoring DboSource to use Model in order to properly quote values by column type, correcting serial integer schema generation in DboPostgres, fixes #4702 , refactoring TreeBehavior to use DboSource::calculate(), fixes #4725 , updating docblocks, fixing DboSource test to be database-agnostic, misc. whitespace fixes, updating DboSource test to reflect new quoting rules
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7015 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 19:05:37 +00:00
the_undefined
e256d4a814
Applied patches by 'asavoy', fixes #4707
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7014 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 18:18:23 +00:00
mariano.iglesias
62bf371aec
Allowing paginate to override the default find type for fetching records.
...
Set the find type as the first string parameter in your paginate settings:
var $paginate = array('popular', ...);
Check the test case for an example.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7013 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 17:07:42 +00:00
gwoo
aaab0306aa
removing exit() and replace with $this->stop();
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7012 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 16:57:46 +00:00
mariano.iglesias
ac9a96663d
Adding tests to paginate() to make sure extra parameters cannot be defined via URL
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7011 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 16:42:56 +00:00
mariano.iglesias
8f92952d46
Allowing paginate() to send any extra parameters to the find call, and updating it to use new find notation.
...
Updating test in Containable to reflect how to properly use pagination: just set your 'contain' setting as you do with other pagination parameters, for example:
var $paginate = array('Article' => array('conditions' => ..., 'contain' => array( ... ));
and then do your normal paginate(), without having to set reset to false nor call resetBindings(). Check the test case for an actual example.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7010 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 16:25:10 +00:00
AD7six
d1d06eb4fe
correcting invalidLftRght test to not attempt to set not-null fields to null
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7009 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 15:33:41 +00:00
mariano.iglesias
ea94b57ec1
Properly setting non-array option overrides, fixes #4732
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7008 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 14:22:12 +00:00
gwoo
8dc7515045
fixes #4729 , configure notice on cache path
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7007 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 14:18:21 +00:00
mariano.iglesias
340496079f
Removing countReset option from Containable as pagination support will be handled from paginate
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7006 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 13:43:23 +00:00
nate
5def68bf30
Updating Model test to reflect TreeBehavior changes, adding association support to Model::getColumnType()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7005 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 12:56:41 +00:00
joelmoss
be63f26e78
Improving documentation for HtmlHelper::tableCells()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7004 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 12:32:38 +00:00
joelmoss
17c542d76d
HtmlHelper::tableCells() now accepts a fifth parameter $continueOddEven, which by default is true, thereby not affecting current behaviour. When false, $count will not be static, and will therefore start from zero, giving correct odd and even values if they are passed. Fixes #4222
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7003 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 09:13:23 +00:00
joelmoss
9b514352dc
Set::combine() now returns an empty array if first passed var is empty. Fixes #4709 and #3784
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7002 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 08:21:08 +00:00
nate
fbdb4af2c1
Supressing header exceptions in RequestHandler test
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7001 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 03:01:22 +00:00
mark_story
62d4397d4a
All components group works. Acl test and Auth test were clobbering each other.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7000 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 02:46:24 +00:00
nate
6c5f98ddec
Fixing ACL interface class names
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6999 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 02:00:36 +00:00
mark_story
1523020ea1
Updated tests on DB_ACL coverage up to 88%
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6998 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 00:56:46 +00:00
gwoo
2558705e14
closes #4708 , test case added to show Auth supports routed login actions
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6997 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-21 23:45:58 +00:00
AD7six
032faec107
Removing accidentally committed debug code
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6996 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-21 20:04:57 +00:00
AD7six
84eb4ae36d
updated tree behavior addressing most of the issues related to its use with postgreSQL and sqlite
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6995 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-21 20:03:12 +00:00
AD7six
c0ff1b6fd1
adding updated tree test with extra checks on recover
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6994 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-21 19:57:51 +00:00
gwoo
200315efc8
proper fix for #4710
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6993 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-21 16:14:18 +00:00
gwoo
6ef2b78389
fixes #4710 , cake core using settings for default cache
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6992 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-21 15:41:02 +00:00
mark_story
f7438da72e
Implemented patch from 'johnathansnook' closes #4496 Form::inputs now allows for fieldset classname to be set. Updated tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6991 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-21 03:57:35 +00:00
AD7six
bb9be60c1e
updated tree behavior tests to be db independent.
...
Related primarily to changes to the tree behavior to allow Postgre and sqlite to function correctly.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6990 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 18:58:43 +00:00