Commit graph

3702 commits

Author SHA1 Message Date
mark_story
778a6b9303 Reversing change from [a37fc0d455e373b30a73f11687885572c6e4b90d]. As the additional & causes errors in PHP <= 5.2 2009-09-29 10:05:03 -04:00
mark_story
2fe20a2264 Updating redirects in Scaffold. 2009-09-29 00:56:25 -04:00
mark_story
070bbb5d0e Removing magic 'title' key in Controller::set() and View::set()
Removing Controller::$pageTitle and View::$pageTitle.
Instead you should set('title_for_layout', $val) from your view or controller.
Test cases updated.
2009-09-28 21:23:40 -04:00
mark_story
51508c6375 Fixing error in php5.3 when calling behavior methods that had more than 6 parameters. 2009-09-28 18:09:02 -04:00
mark_story
c69410d809 Removing static call, and replacing with instance method call. 2009-09-27 16:31:56 -04:00
mark_story
622e500943 Merge branch '1.3-router' into 1.3-misc 2009-09-27 16:20:22 -04:00
mark_story
76c1c1cb8e Implementing Routing.prefixes.
Replaces Routing.admin and streamlines the use of Routing prefixes so they behave more consistently with admin routing.
2009-09-27 00:12:03 -04:00
mark_story
3e394f1fa8 Adding test cases for Routing.prefixes. 2009-09-26 22:48:57 -04:00
mark_story
3904c6f7b5 Adding constructor to Router.
Adding __setPrefixes to initialize prefixes and merge Routing.admin with new Routing.prefixes.
2009-09-26 22:37:19 -04:00
mark_story
2f46f39225 Removing subclassing of Object. 2009-09-26 22:24:24 -04:00
mark_story
cf849e3cf8 Removing svn tags. 2009-09-26 22:22:43 -04:00
mark_story
6dbb8f3994 Merge branch '1.3' into 1.3-misc 2009-09-26 21:18:15 -04:00
jperras
22721fcb8b Replacing use of Configure::corePaths() with App::core() in Debugger. 2009-09-26 18:25:15 -04:00
jperras
9a2cd886fe Fixing call-time pass by reference. 2009-09-26 17:08:01 -04:00
mark_story
bf551c2267 Merge branch '1.3-misc' into 1.3 2009-09-26 15:17:02 -04:00
mark_story
508d737b6a Updating HtmlHelper::css, JavascriptHelper::link to not replace multiple occurences of CSS_URL or JS_URL when using Asset.filter settings.
Test cases added.
Thanks to 'robustsolution' for the patch.
Fixes #105
2009-09-26 14:22:12 -04:00
jperras
03b1089f1d Updating docs for Set library. Deprecating Set::isEqual(). 2009-09-25 15:05:06 -04:00
jperras
f231b59cfb Clarifying some Set documentation. Removing deprecated &get() method. 2009-09-25 14:31:05 -04:00
jperras
1a4f806bfd Merge branch '1.3-misc' into 1.3-misc-set-apply 2009-09-25 14:20:28 -04:00
mark_story
daa97f702a Fixing use of deprecated method. 2009-09-25 11:36:27 -04:00
jperras
f3d0769912 Renaming ConnectionManager::__getDriver() to ConnectionManager::__connectionData(). 2009-09-25 11:08:41 -04:00
jperras
c2ec96067a Refactoring ConnectionManager & tests. 2009-09-25 11:08:34 -04:00
jperras
7e5fe04a77 Merge branch '1.3-misc' into 1.3-misc-plugin-datasources 2009-09-24 23:14:12 -04:00
jperras
c3cd98af42 Implementing loading datasources from plugins. 2009-09-24 22:56:02 -04:00
mark_story
06cf97459a Fixing XmlHelper::elem() when value is null and cdata = true. Removing empty invalid tag.
Test cases added.
Fixes #127
2009-09-24 22:43:31 -04:00
mark_story
e030400f8e Updating links in home.ctp to point a new address for changelogs and to code.cakephp.org instead of trac. 2009-09-24 22:26:55 -04:00
jperras
11365e7a09 Fixing return by reference error on the use of ConnectionManager::getDataSource() on a non-existing datasource. 2009-09-24 19:29:35 -04:00
jperras
0949ea912d Merge branch '1.2' of code.cakephp.org:cakephp into 1.2 2009-09-24 16:41:54 -04:00
jperras
4bf5244073 Adding tests for ConnectionManager, and fixing a missing return value for ConnectionManager::loadDataSource(). 2009-09-24 16:26:56 -04:00
jperras
ffad7a74a2 Merge branch '1.3-misc-plugin-datasources' into 1.3-misc 2009-09-24 16:26:17 -04:00
jperras
ed74653d72 Adding tests for ConnectionManager, and fixing a missing return value for ConnectionManager::loadDataSource(). 2009-09-24 16:23:39 -04:00
mark_story
bf3fe1f4f6 Merge branch '1.3-timestamp' into 1.3-misc 2009-09-24 00:22:18 -04:00
mark_story
7f49f7f455 Updating HtmlHelper and JavascriptHelper to use Helper::assetTimestamp 2009-09-24 00:16:19 -04:00
mark_story
ee514f3fc6 Adding Helper::assetTimestamp()
Refactor's repeated code from Html and Javascript Helpers.
Test cases added.
2009-09-23 23:45:11 -04:00
mark_story
26d2237df0 Making conditions easier to read.
Adding additional test for image timestamping.
Refs #108
2009-09-23 23:30:55 -04:00
ADmad
de4737323f Updated Html and Javascript helpers to suffix asset urls with timestamp even when the app is run off a subfolder on the domain
Signed-off-by: Mark Story <mark@mark-story.com>
2009-09-23 23:30:34 -04:00
mark_story
34deb2a18d Correcting omission of group in DboOracle. Fixes #98 2009-09-23 23:16:57 -04:00
mark_story
4530e706a4 Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2 2009-09-23 23:05:51 -04:00
mark_story
6946bb0295 Updating docs for FormHelper::inputs()
Fixes #110
2009-09-23 23:05:08 -04:00
jperras
b2eb1882a4 Adding convenience method Set::apply(). 2009-09-23 21:03:09 -04:00
jperras
cd64043702 Adding the 'client' option to the doc block for the email component smtp options. Fixes #111. 2009-09-22 23:10:35 -04:00
jperras
1ed4a63416 Merge branch '1.3-misc' of code.cakephp.org:cakephp into 1.3-misc 2009-09-22 22:49:23 -04:00
mark_story
022f8ccaa2 Making conditions easier to read.
Adding additional test for image timestamping.
Refs #108
2009-09-22 19:04:40 -04:00
ADmad
07a89cd953 Updated Html and Javascript helpers to suffix asset urls with timestamp even when the app is run off a subfolder on the domain
Signed-off-by: Mark Story <mark@mark-story.com>
2009-09-22 18:57:30 -04:00
renan.saddam
7116c01642 Fixing Xml::toArray() when blank nodes are provided. Fixes #87. 2009-09-22 17:58:12 -03:00
renan.saddam
42fac9ec71 Fixing Xml::toArray() when blank nodes are provided. Fixes #87. 2009-09-22 17:47:11 -03:00
jperras
2b0d13733e Fixing parameter ordering error of array_map in AuthComponent::allow(). Adding test. 2009-09-21 12:14:20 -04:00
mark_story
42017e95c6 Merge branch '1.3-console' into 1.3
Conflicts:
	cake/tests/cases/console/libs/schema.test.php
2009-09-20 19:05:03 -04:00
mark_story
50bd279018 Merge branch '1.3-auth' into 1.3 2009-09-20 17:53:23 -04:00
mark_story
e6cc81226d Merge branch '1.3-jshelper' into 1.3 2009-09-20 17:46:30 -04:00
mark_story
06fb86f141 Fixing issue where sessions were not correctly started. 2009-09-20 11:54:26 -04:00
ADmad
5049265a49 Fixed incorrect doc. block for TimerHelper::format 2009-09-20 11:08:48 -04:00
jperras
ca632461f1 Adding tilde (~) to accepted characters for URL validation. Fixes #52, and legacy trac enhancement 6213. 2009-09-19 12:14:47 -04:00
mark_story
d5376e64aa Adding patch from 'Ceeram' and 'TehTreag' to implement automatic updating of Aro/Aco nodes created AclBehavior. Test cases added. Fixes #33 and #4261 2009-09-19 01:17:20 -04:00
renan.saddam
317049b736 Fixing bug when value is '0', it was generating a blank node. 2009-09-17 23:08:32 -03:00
mark_story
20ef932156 Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2 2009-09-17 19:58:14 -04:00
mark_story
e0b6b25365 Fixing inherited public properties not being set in SessionHelper.
Adding tests for SessionHelper construction and the setting of inherited properties.  Fixes #94
2009-09-17 19:57:56 -04:00
mark_story
05f908d36d Fixing failing tests in JsHelper caused by changed API in HtmlHelper. 2009-09-16 01:55:15 -04:00
mark_story
5717e3b59c Merge branch '1.2' into 1.2-merger
Conflicts:
	app/webroot/test.php
	cake/VERSION.txt
	cake/bootstrap.php
	cake/config/config.php
	cake/console/cake.php
	cake/console/libs/schema.php
	cake/console/templates/skel/webroot/test.php
	cake/libs/configure.php
	cake/tests/cases/console/libs/schema.test.php
	cake/tests/cases/libs/debugger.test.php
	cake/tests/cases/libs/model/model_write.test.php
	cake/tests/fixtures/aco_fixture.php
2009-09-16 01:23:49 -04:00
mark_story
793c6ec07a Making DboSybase able to return VIEW's as part of listSources(), making it similar to DboPostgres and DboMysql. Fixes #91 2009-09-15 22:00:49 -04:00
mark_story
2c633912e0 Making DboSybase able to return VIEW's as part of listSources(), making it similar to DboPostgres and DboMysql. Fixes #91 2009-09-15 22:00:04 -04:00
mark_story
f764c53c55 Removing Inflector's inheritance on Object, as it was unecessary.
Adding irregular waves => wave missed in merge from 1.2
2009-09-15 21:44:27 -04:00
mark_story
3ef53aa159 Applying optimization from 'wangbo' to View::renderCache(). Fixes #26 2009-09-14 23:56:50 -04:00
mark_story
f1194a4ec9 Commiting fix to pass tests in last commit.
Making View::renderCache tests more specific.
2009-09-14 23:53:04 -04:00
mark_story
01cf40bf12 Adding automatic use of $options for $disabledOptions in PaginatorHelper::next() and PaginatorHelper::prev(). Thanks to 'joaquin_win' for the initial patch. Refs #83 2009-09-14 23:06:24 -04:00
mark_story
4a6412fb27 Adding tests for AuthComponent::action().
Adding plugin support for AuthComponent in actions mode.  Refs #33
2009-09-14 00:29:33 -04:00
mark_story
090eb27be1 Updating imports in AuthComponent and AuthComponent test case. 2009-09-13 23:42:25 -04:00
mark_story
326424592d Merge branch '1.2' into 1.2-merger
Conflicts:
	cake/VERSION.txt
	cake/config/config.php
	cake/dispatcher.php
	cake/libs/controller/scaffold.php
	cake/libs/inflector.php
	cake/libs/view/view.php
	cake/tests/cases/libs/controller/scaffold.test.php
	cake/tests/cases/libs/inflector.test.php
	cake/tests/cases/libs/view/view.test.php
	cake/tests/fixtures/counter_cache_post_fixture.php
	cake/tests/fixtures/counter_cache_user_fixture.php
2009-09-13 13:52:58 -04:00
mark_story
76f6e3dd07 Merge branch '1.3-numberhelper' into 1.3-misc 2009-09-11 21:07:30 -04:00
Niles
20fa1c9693 Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-09-11 06:58:56 -04:00
Niles
b9970f7484 replace deprecated method calls. 2009-09-11 06:58:23 -04:00
mark_story
9c41efd6fe Adding NumberHelper::addFormat and test cases. Refs #5630 2009-09-10 22:54:49 -04:00
mark_story
5f6015c3c4 Updating file headers and removing @static. 2009-09-10 22:23:48 -04:00
renan.saddam
4ec75c6052 Merge branch '1.3-misc' of code.cakephp.org:cakephp into 1.3-misc 2009-09-10 12:32:52 -03:00
renan.saddam
2e8bbd5eb1 Adding docblock for the new variable used for logging. Making the CakeLog::handleError logs the same output as in Debugger::handleError. 2009-09-10 12:32:21 -03:00
mark_story
0065005f95 Fixing custom error class not being used if error for field is a named index. Test case added. Fixes #76 2009-09-10 09:57:23 -04:00
nate
fd6538fc72 Changes Model::find() to allow modification of DataSource connection during callbacks. 2009-09-10 09:28:55 -04:00
mark_story
4766f62029 Merge branch '1.3-logging' into 1.3-misc 2009-09-09 11:08:18 -04:00
jperras
5a432c6f71 Applying fix from Ceeram for updateAll joins on model relations with no foreign key. Fixes #69. 2009-09-09 00:00:53 -04:00
mark_story
d0e6a79f82 Updating file headers.
Adding CakeLog::handleError which will log errors when debug = 0.
Test cases added.
2009-09-07 23:59:31 -04:00
mark_story
cac09481ac Removing support for DEBUG constant. Use Configure::write('debug', 2) instead.
Adding 'log' interaction to error reporting settings controlled by Configure::write().
2009-09-07 23:28:50 -04:00
mark_story
12e0652943 Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2 2009-09-07 14:47:53 -04:00
nate
a5c00de3bd Applying PHP 5.3 compatibility patch from. Please update your config/core.php, webroot/index.php and webroot/test.php accordingly. 2009-09-07 14:25:22 -04:00
jperras
daadac03cc Merge branch 'bug-22-schema-shell' into 1.2 2009-09-07 12:34:12 -04:00
jperras
24351b5a21 Backporting bugfix for #22 from 1.3-console to 1.2. Adds schema shell test cases, fixes for schema object references, i18n of schema schell output strings. 2009-09-07 12:24:38 -04:00
jperras
4dc656fd91 Updating EmailComponent smtp HELO handling to account for non-existence of HTTP_HOST environment variable when PHP SAPI is CLI. Fixes #41. 2009-09-07 11:18:11 -04:00
jperras
2484179e36 DboMssql::value() now returns NULL for numeric column types (float, integer, binary) when the column data is empty. Fixes #28. 2009-09-06 13:57:24 -04:00
mark_story
bcbdb1cf1d Fixing issue where admin revere routing was possibly unsuccessful due to differences in action param between route and url arrays. Fixes #44 and #6173 2009-09-05 01:06:18 -04:00
mark_story
4f4411126c Fixing empty arrays being dropped with Set::sort(). Fixed #67 2009-09-03 23:09:27 -04:00
mark_story
b5a38d69a5 Merge branch '1.2-dirty' into 1.2 2009-09-03 22:47:45 -04:00
mark_story
cf3521737f Fixing selected with interval not selecting the correct option. Fixes #70. 2009-09-03 22:47:17 -04:00
mark_story
ce7864920f Adding ability to add arbitrary attributes to HtmlHelper::scriptBlock. Test case added. 2009-09-03 13:50:53 -04:00
mark_story
ead3b0ecf6 Allowing HtmlHelper::script() to take an array of options, allows for custom attributes to be added to script include tags. Test cases added. Fixes #2955 2009-09-03 13:45:39 -04:00
mark_story
c963d5cc43 Updating file headers. 2009-09-03 12:43:13 -04:00
mark_story
2ff5334347 Minor refactor to remove method calls to Inflector::camelize.
Adding tests to ensure references are maintained.
2009-09-03 09:37:25 -04:00
evilbloodydemon
75695341fa Helpers addressed by $this->Helper->func() 2009-09-03 00:58:26 -04:00
renan.saddam
0e9007e060 Making sure we are not making non-uniques and non-primary keys index. Also changing basic fixture schema to make tests pass. 2009-09-02 22:07:58 -03:00
mark_story
1b063d6218 Reformatting code in CakeSession. 2009-09-01 23:25:03 -04:00
mark_story
c0a19ced14 Adding DboSource::getLog() and test case. 2009-09-01 23:23:47 -04:00
mark_story
fb476f17cc Fixing Set::extract run against hasMany records that are the result of a find('first'). Test case added. 2009-09-01 13:18:20 -04:00
mark_story
4ff668b3ed Fixing method names that were omitted when methods were renamed. Thanks 'NetersLandreau' 2009-09-01 10:45:52 -04:00
Niles
0614580c28 Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-09-01 08:24:04 -04:00
mark_story
4d458e93b6 Updating SessionHelper::flash() to use elements for custom flash wrapping html instead of layouts. 2009-09-01 00:03:56 -04:00
mark_story
17e81ab346 Updating session component, to not use layout, and use elements instead.
Tests updated.
2009-08-31 23:59:40 -04:00
mark_story
1bedd8418b Merge branch '1.3-deprecation' into 1.3-misc 2009-08-31 23:41:41 -04:00
mark_story
9afa4d1c3a Updating test case to reflect API changes. 2009-08-31 22:52:15 -04:00
mark_story
4ee70c01a8 Updating tests to reflect API deprecations. 2009-08-31 22:50:46 -04:00
mark_story
b5605b6408 Updating file headers 2009-08-31 22:48:22 -04:00
mark_story
fe3514371f Updating folder + test case to reflect api changes. 2009-08-31 22:47:37 -04:00
mark_story
5fa6e5b6f2 Removing deprecated params. 2009-08-31 22:34:14 -04:00
mark_story
046d7c75d0 Adding warnings to newly deprecated methods. 2009-08-31 22:31:36 -04:00
mark_story
bd350e95b6 Deprecating Model::bind() 2009-08-31 22:18:31 -04:00
mark_story
71e93b9ae8 Fixing Scaffold not using session flashes even when they are available.
Simplifying message generation. Refs #64
2009-08-31 14:33:01 -04:00
mark_story
f6ce178d85 Simplifying message generation.
Fixing inflection of model names.
Adding tests for flash page generation. Refs #64
2009-08-31 14:24:50 -04:00
mark_story
0097e8c14b Updating Scaffold to merge hasAndBelongsToMany keys when generating field lists for scaffolded forms. Fixes #48 2009-08-31 14:22:37 -04:00
mark_story
86f2008d32 Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2 2009-08-31 14:17:29 -04:00
mark_story
84b230413a Fixing non output of flash messages from Scaffolds when controller is not using Sessions. Refs #64 2009-08-31 13:52:21 -04:00
mark_story
a678a603c0 Simplifying message generation.
Fixing inflection of model names.
Adding tests for flash page generation. Refs #64
2009-08-31 13:48:32 -04:00
mark_story
c0ba43c884 Fixing non output of flash messages from Scaffolds when controller is not using Sessions. Refs #64 2009-08-31 13:38:40 -04:00
mark_story
4d7fc24850 Fixing errors generated by ajaxProvider class not being loaded when checking for method implementation. 2009-08-31 11:38:31 -04:00
Niles
dfc3cd2884 Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-08-31 10:38:12 -04:00
Niles
b8b382f8e7 add missing underscore to _decodeBody. 2009-08-31 10:36:31 -04:00
mark_story
b4a1c4723d Making AuthComponent::deny() case insensitive like allow(). Fixes #6261 2009-08-30 20:41:39 -04:00
mark_story
3cdf89dc18 Removing unused $db in Model::_deleteLinks. Fixes #6384 2009-08-30 20:09:07 -04:00
mark_story
81cb097959 Merge branch '1.3-behavior-error' into 1.3-misc 2009-08-30 19:33:43 -04:00
mark_story
c19c1a7828 Fixing issues with cakeError call.
Adding tests for cakeError being called with non-existant Behaviors.
2009-08-30 19:33:21 -04:00
mark_story
776992dc6c Further optimizations to path scanning. 2009-08-30 19:13:54 -04:00
mark_story
8be5de947b Minor refactor in how paths are checked, so that fallback extensions are checked only when all paths fail, instead of for each path. Refs #49 2009-08-30 19:07:36 -04:00
mark_story
ef23ecfe07 minor refactor for file_exists checks. 2009-08-30 18:59:07 -04:00
mark_story
29de5e515f Allowing Controller::flash() layout to be set with a parameter. Fixes #5034 2009-08-27 23:40:36 -04:00
mark_story
81865bc960 Removing use of ife() from core classes. 2009-08-27 22:54:57 -04:00
mark_story
4bb5b615f7 Applying patch from 'mete0r' to make the legend generated FormHelper::inputs() more i18n friendly. Fixes #6360 2009-08-27 22:38:49 -04:00
mark_story
bd3178b9fc Deprecating Cookie::del() Unifying to 'delete' method. 2009-08-27 00:33:24 -04:00
mark_story
5e8eb83f7d Deprecating SessionComponent::del() unifying delete methods to 'delete' 2009-08-27 00:31:57 -04:00
mark_story
934bda0a74 Deprecating aliases in folder class. 2009-08-27 00:29:17 -04:00
mark_story
7ca1ef22f0 Adding cakeError calls to ModelBehavior. 2009-08-27 00:16:17 -04:00
mark_story
7c4d60abe8 Adding patch from 'grncdr' to allow default direction to be set for sort links created with PaginatorHelper::sort. Fixes #5151 2009-08-26 23:55:19 -04:00
mark_story
4f2d415663 Applying patch from 'kuja' to give default class names to links generated by Paginator::sort().
Fixes #6239
2009-08-26 23:33:13 -04:00
mark_story
38a4b619e6 Adding default classes to next and prev links.
Switching next() and prev() to use span by default.
2009-08-26 22:55:24 -04:00
mark_story
533f6e0d36 Updating doc block. 2009-08-26 22:54:23 -04:00
mark_story
136b4db7ad Deprecating $escape for HtmlHelper::tag() use $attributes['escape'] instead. Test case added. 2009-08-26 22:46:49 -04:00
mark_story
c2db059732 Adding error methods and templates for Missing Behavior class and Missing Behavior File errors. 2009-08-26 10:02:55 -04:00
mark_story
2dca77cbcb Updating Scaffold to merge hasAndBelongsToMany keys when generating field lists for scaffolded forms. Fixes #48 2009-08-25 23:34:19 -04:00
mark_story
56d2423bc3 Additional documentation. 2009-08-24 22:57:01 -04:00
mark_story
1a51d58713 Updating file header. 2009-08-24 22:53:55 -04:00
mark_story
b265a99bc9 Removing deprecated properties. 2009-08-24 22:53:09 -04:00
mark_story
31ec714e2e Adding View::_paths() optimization.
Test cases added.
Refs #49
2009-08-23 23:13:56 -04:00
mark_story
325446a8b3 Updating View::_paths to remove an always miss file_exists() check.
Test case added.
Refs #49
2009-08-23 22:43:51 -04:00
jperras
e9cfb66424 Fixing calling of method from incorrect object in DboOracle::describe(). Fixes #21. 2009-08-23 17:52:40 -04:00
jperras
6f8f4c5a05 Adding waves -> wave as irregular singularization rule. Fixes #47. 2009-08-22 20:26:33 -04:00