Commit graph

840 commits

Author SHA1 Message Date
phpnut
87060dbf86 Updating files with translation function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4135 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 00:29:39 +00:00
nate
19798c71b3 Adding 1.2 fix for Ticket #1797
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4132 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 00:17:52 +00:00
phpnut
4f1c5ef386 Wrapping all core messages in translation function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4129 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 22:49:47 +00:00
phpnut
c5ec6b0ea1 Updating HtmlHelper::charset() to use Configure::read('charset)
Updated core layouts to use $html->charset()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4128 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 21:33:23 +00:00
phpnut
9283b97f01 Setting charset with Configure::write();
Adding default charset values for all languages.
Those that I did not know where set to utf-8

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4127 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 21:15:40 +00:00
phpnut
5a128ed722 Adding charset var and __l10nCatalog key to I10n class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4126 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 21:05:42 +00:00
phpnut
238ddacded Cleaning up translations model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4124 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 20:30:09 +00:00
phpnut
d23de28349 Adding doc comments to translation functions in basics.php
Refactoring I18n class to use one locale directory for an application.
Translations will be located in app/locales/[LANGUAGE]/LC_MESSAGES/[CONTROLLER].mo or [CONTROLLER].po
If not found app/locales/[LANGUAGE]/LC_MESSAGES/default.mo or default.po
All core translations will be located in cake/locales/[LANGUAGE]/LC_MESSAGES/

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4122 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 20:04:15 +00:00
nate
4c586b7893 Fixing default label rendering in FormHelper::input()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4121 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 16:26:54 +00:00
dho
b5a4e298fb Fixing "undefined variable" problem in FormHelper::input
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4120 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 07:38:31 +00:00
nate
02ec1887ce Un-requiring model name parameter in FormHelper::create(), and moving date/time option data to FormHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4119 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 05:23:07 +00:00
phpnut
90a78232ed Changed Configure::read() so it would return null if key is not set.
Refactored I18n and I10n classes.
Removing languages that are not found in browsers

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4117 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-21 22:05:42 +00:00
phpnut
78df4e3549 Cleaning up I10n and I18n classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4116 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-21 09:17:32 +00:00
nate
6ae8f7e37c Refactoring FormHelper::create(), and stripping empty array elements in Router::url()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4115 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-21 06:10:35 +00:00
nate
0de17ece93 Updating auto-generated form tag ID
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4114 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-21 05:49:19 +00:00
nate
3c023b4335 Adding automatic list variable detection for select menus, and 'default' => false option for preventing form submits via JavaScript
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4113 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-21 04:46:52 +00:00
nate
fd9a347fe1 Updating FormHelper docblock
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4112 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-20 21:43:11 +00:00
nate
ccf52fa20d Updating scaffold views with new FormHelper and URL code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4111 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-20 21:41:42 +00:00
nate
6e3f0c8f1c Updating helper docblocks
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4110 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-19 19:31:14 +00:00
nate
8606816642 Fixing View class reference in RssHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4109 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-19 19:27:19 +00:00
nate
982381dc74 Binding additional Behavior callbacks to Model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4108 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-19 19:26:02 +00:00
nate
eeec18d562 Converting scaffold URLs to array-based
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4107 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-17 15:33:21 +00:00
nate
deea24b153 Fixing undefined index error in Router
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4104 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-15 16:10:57 +00:00
dho
c25bcd26ab Fixing error messages in File::create (ticket #1770)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4103 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-15 12:33:15 +00:00
gwoo
1490f7da5d View::layoutPath fix
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4102 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-13 05:50:32 +00:00
phpnut
b8a46e14d7 Adding Folder::rmdir().
Removed empty lines from basics file

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4101 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-13 04:39:26 +00:00
nate
b5face3516 Changing Model::del to check for existence of itself before allowing deletes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4099 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-13 04:04:15 +00:00
gwoo
16bf452787 updating Folder::mkdirr(), adding Folder::chmodr()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4098 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-13 02:28:36 +00:00
gwoo
f5e2dea563 adding automatic hidden field for FormHelper::input(), removed create() from bake controller edit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4097 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-12 22:43:01 +00:00
phpnut
64997718e0 Merging fixes from 1.1.x.x Folder class to 1.2.x.x
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4096 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-12 22:11:24 +00:00
nate
37281be9de Checking if model exists when setting 'created' field, to enable use with custom IDs
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4094 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-12 22:06:22 +00:00
phpnut
ff8bc29ee7 Adding fix for Ticket #1746
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4093 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-12 17:03:21 +00:00
nate
da1eab6e5f Adding 1.2 fix for Ticket #1740
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4092 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-12 14:25:58 +00:00
phpnut
3bc7ae19c2 Fixing Controller::generateFieldNames() when alias used in a HABTM
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4090 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-11 01:33:18 +00:00
dho
cc9b30ad2f Typo (ticket #1738)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4088 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-08 17:37:54 +00:00
nate
51e7c5e08c Enabling FormHelper::input to introspect default field types based on column type in model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4083 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-08 08:45:35 +00:00
nate
2c7f129aaa Adding 3rd param to Controller::redirect to allow auto-exiting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4082 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-08 08:36:36 +00:00
nate
a7d07aea20 Fixing undefined index notice with admin routes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4081 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-07 22:41:20 +00:00
nate
7fd83394ca Fixing admin paths for string URLs
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4080 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-07 18:59:58 +00:00
nate
8d1a23e008 Fixing reverse-route URL generator for admin routes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4077 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-07 05:58:08 +00:00
nate
94a57a89a4 Adding fixes for reverse routing engine
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4076 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-06 20:38:28 +00:00
nate
403ff35bdb Refactoring code and updating docblocks in Security and RequestHandler components
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4075 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-06 20:37:12 +00:00
phpnut
0419f05186 Adding fix for View::element().
params variable was reset to an array
Added the method to 1.2.x.x branch also

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4074 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-06 17:43:14 +00:00
dho
9ca5e14891 Adding new methods to Configure and moving all core messages using DEBUG to use Configure::read()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4069 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-05 09:49:59 +00:00
gwoo
b72ab690d4 fix for FormHelper::select() showEmpty
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4067 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-04 18:00:36 +00:00
gwoo
ecb2b8c786 fix for generateList
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4065 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-04 06:59:56 +00:00
phpnut
426bf45f98 Reverting changes in [4055]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4057 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-03 17:35:30 +00:00
phpnut
1040a34fa2 Added Object::debug() for setting debug levels.
Added Configure::debugLevel().
Added Configure::debug().

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4055 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-03 07:18:48 +00:00
nate
33d07d0af9 Refactoring RequestHandler, and updating docblocks for RequestHandler and Security components
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4048 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-01 23:51:43 +00:00
nate
f66b3372b4 Fixing <form /> method case to validate as XHTML, and fixing order in which empty select() elements are added
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4045 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-01 19:04:16 +00:00
phpnut
adae18da2d Corrected doc comments in dbo sources.
Renamed DBO_Pear to DboPear

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4042 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-01 02:34:56 +00:00
phpnut
85b0e9c842 Adding core Oracle DBO driver
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4041 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-01 02:26:12 +00:00
phpnut
7b6e81c1e2 Fixing Scaffold in 1.2.x.x when setting Controller::persistModel = true;
Corrected error message with correct method name in scaffold_error templates.
Removed unneeded check for Controller::persistModel in 1.2.x.x.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4038 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-01 00:48:00 +00:00
phpnut
83afee9a52 Merging fixes between branches for DboSource::generateAssociationQuery()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4037 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-30 22:26:24 +00:00
phpnut
32d3349eb2 Adding fix for Ticket #1568.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4036 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-30 18:54:22 +00:00
gwoo
4abc9e94f8 reverting change for empty options in FormHelper::select()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4035 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-30 18:07:08 +00:00
gwoo
f9290417e2 adding ctp extensions for Controller::flash(), removing Controller::flashOut()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4034 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-30 17:58:33 +00:00
phpnut
e42a93c639 Changing Sanitize::cleanValue() to enforce replacement of \r and \n with \n
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4033 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-30 17:40:37 +00:00
gwoo
e712f87fc0 fixing displayFields in formHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4031 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-29 21:37:54 +00:00
gwoo
8657757bde fix form helper, bake, refactor Controller::_selectedArray to just take the association name and checks Controller::data, also made Controller::_selectedArray work for submitted form data and returned model data
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4029 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-29 10:21:22 +00:00
gwoo
79e93c180e fix form helper notice with empty options
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4028 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-29 08:14:55 +00:00
gwoo
e2614e5140 updating bake and form helper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4027 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-29 07:58:35 +00:00
phpnut
dc90e5f749 Renaming _viewVars to viewVars in ThemeView
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4026 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-29 07:32:14 +00:00
gwoo
5a39777c95 fix to baked views
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4023 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-29 06:44:45 +00:00
phpnut
5a74812c7b Adding fix for Ticket #1661
Fixed same issue in function cache() in basics.php

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4014 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-28 22:34:28 +00:00
phpnut
cbf61ff56f Merging fixes from 1.2 to 1.1.
Added fixes for missing models.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4012 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-28 22:05:22 +00:00
gwoo
32cca7345e updating css in 1.2, error_message is now error-message, form-error added for input fields, altRow changed to altrow. Cake conventions are CamelCased for DOM id, dashed-words for css classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4011 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-28 21:14:28 +00:00
phpnut
2e8730e543 Merging fixes from 1.1.x.x into 1.2.x.x
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4010 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-28 11:18:05 +00:00
nate
cc484ddbd2 Adding DboSource::order parsing fix for Ticket #1677
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4004 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-28 08:18:53 +00:00
phpnut
881dc728cf Adding missing doc comments.
Updated use of Controller::persistModel; Lazy Loading of models now work when this is set to true.
Fixed Scaffold to work with Controller::persistModel = true;

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4003 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-28 06:25:11 +00:00
phpnut
d7e8a20b19 Adding missing doc comments to SecurityComponent.
Reformatted code to standards

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4000 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-28 00:00:23 +00:00
gwoo
5c5b77753e fix for scaffold
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3998 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 20:15:24 +00:00
gwoo
083a3bf990 fix for FormHelper:create()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3997 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 19:56:06 +00:00
gwoo
f5cdfcfd32 fix for generateFieldNames belongsTo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3996 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 19:11:15 +00:00
phpnut
25eedb8502 Starting work on Translate model.
Restructured code to standards

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3995 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 18:15:36 +00:00
gwoo
41faae6265 fix for view files in scaffold
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3993 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 16:04:11 +00:00
phpnut
e935b51b8d Adding fix for Ticket #1699
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3991 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 05:57:53 +00:00
nate
b479c5f49e Adding fix for Ticket #1701
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3989 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 05:32:18 +00:00
gwoo
b056c5abbf refactoring scaffold, if var $uses exists scaffold will use the first model specified in the array, if $scaffold is an array, only methods added to the array will allow scaffold to render, ex: var $scaffold = array('index'); only the index action will be rendered
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3988 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 05:23:33 +00:00
nate
bce8e016d2 Adding to last commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3987 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 04:46:25 +00:00
nate
1e5dbe0e69 Adding to last commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3986 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 04:46:00 +00:00
nate
c4bee9b414 Fixing validationErrors, and updating ClassRegistry alias for View
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3985 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 04:45:03 +00:00
gwoo
2beb0f2f06 fixed bad check for uses from last commit, update scaffolding
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3984 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 02:31:18 +00:00
gwoo
dfcc29f6bf refactoring scaffold, scaffodl views, generateFieldNames, FormHelper, ClassRegistry, missingView
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3983 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 01:04:19 +00:00
nate
890c0125c8 Adding model-based form creation to FormHelper, deprecating old methods, and fixing issue where using $uses in AppController overwrites existing models
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3982 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-26 20:43:54 +00:00
dho
38596258f1 Fixing undefined variable errors
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3981 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-26 15:24:58 +00:00
gwoo
59049a0fa8 refactoring scaffold and generateFieldNames
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3980 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-26 06:15:30 +00:00
phpnut
ccfd962f98 Renaming core view templates with the new CakePHP extension .ctp
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3978 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-26 03:22:02 +00:00
gwoo
3bcf9e6044 fix for thtml custom missingView
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3976 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-26 00:10:59 +00:00
gwoo
9ad12b1f4e removed errant echo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3975 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-26 00:06:20 +00:00
phpnut
aafdff2250 Fixing SessionComponent not loading when AppController has var $components set.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3971 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 22:58:58 +00:00
gwoo
9e404b3ce3 refactor of view paths
refactor theme view paths
fix cleanUpFields error, changed ext in controller to ctp, fix for paginate conditions and scope

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3970 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 22:04:43 +00:00
gwoo
4320acdb96 1.2: continue refactor of view files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3969 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 21:27:34 +00:00
phpnut
76394b643f Refactoring loading plugin views and layouts.
Plugin templates can be overridden in the app/views/plugins/$plugin/$viewPath directory
If template is not found in this directory or the app/plugins/$plugin/views/$viewPath a missing 
view error will be rendered

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3966 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 19:58:16 +00:00
phpnut
0c0ba050cb Cleaning up core views/caching.php
Removing unused files in app/webroot/css/

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3965 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 18:23:53 +00:00
dho
3682fff468 Replacing deprecated $html->formTag with $form->create
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3964 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 17:33:42 +00:00
phpnut
e0096f0528 Fixing CacheHelper after removal of controller from View
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3962 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 09:27:13 +00:00
nate
c680a98eea Refactoring Controller::generateFieldNames()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3961 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 09:27:01 +00:00
nate
b7e8551143 Updating AjaxHelper docblocks to remove references to deprecated methods
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3960 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 08:57:27 +00:00
nate
41c79da1c3 Removing direct reference between View and helpers, and explicitly defining all Helper object properties
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3959 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 08:55:16 +00:00
phpnut
1fa21aa551 Refactoring session classes.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3958 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 08:43:17 +00:00
nate
d4af73c2a6 Adding Overloadable2 interface for get() and set() magic methods
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3957 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 08:19:51 +00:00
nate
e955f3fd65 Refactoring DboSource::update(), and adding magic finder method fix for Ticket #1673
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3955 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 07:53:31 +00:00
nate
e8222444b8 Removing extra directory separators in uses() paths
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3954 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 06:42:24 +00:00
nate
11d5b0fa7b Removing extra directory separators in uses() paths
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3953 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 04:31:26 +00:00
phpnut
c308326555 SessionComponent and SessionHelper to extend CakeSession.
Refactored both classes and added doc comments

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3952 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 04:15:08 +00:00
gwoo
f77254511f 1.2 updates to ACL
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3951 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-24 17:27:11 +00:00
dho
50a8925070 Replacing wiki link with link to the bakery
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3950 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-24 12:30:59 +00:00
phpnut
54f770ae53 Refactoring fix for Ticket #1648
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3949 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-24 04:41:56 +00:00
phpnut
e42df60a24 Adding fix for Ticket #1648
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3948 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-24 03:53:44 +00:00
nate
e8751b7103 Refactoring Security component
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3947 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 23:06:19 +00:00
nate
00741f0ca6 Adding default overload methods
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3946 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 22:48:47 +00:00
phpnut
ca5753bc39 Adding fix for Ticket #1683
This frees memory returned from a result set.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3943 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 20:23:43 +00:00
dho
ac310dbabe Typo (ticket #1416)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3942 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 17:07:28 +00:00
phpnut
fd65f226e6 Adding fix for Ticket #1626.
This fixes deleting of associated hasOne and hasMany when using bindModel before Model::delete()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3941 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 11:31:59 +00:00
phpnut
2e0ec28018 Fix for Ticket #1689.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3940 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 11:05:47 +00:00
phpnut
553190bb98 Added fix for Ticket #1679
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3939 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 10:48:22 +00:00
phpnut
c41db64070 Adding fix for Ticket #1527
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3937 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 10:17:05 +00:00
phpnut
282ca26319 Adding fix for Ticket #1666
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3936 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 10:13:36 +00:00
phpnut
984ceb3b51 Adding fix for Ticket #1629
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3935 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 10:06:49 +00:00
phpnut
2d83d125e4 Updating core views to render better notices
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3934 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 09:50:20 +00:00
phpnut
9703a90937 Merging fix from [3228]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3933 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 07:51:13 +00:00
phpnut
ca5f7d952c Merging fix when using Controller::persistModel = true and a requestAction method is used
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3911 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 20:33:21 +00:00
phpnut
87af38c7dc Merging fixes from [3908] for Ticket #1689
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3909 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 20:25:13 +00:00
phpnut
b76c2179e1 Merged fixes from [3906]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3907 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 20:08:53 +00:00
phpnut
3180035f0f Merged fixes for Ticket #1681
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3905 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 19:58:53 +00:00
phpnut
883ecc1cd0 Merged fix for Ticket #1675
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3903 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 19:36:59 +00:00
phpnut
3343368dde Adding loadModels() to cached views
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3897 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 17:54:22 +00:00
nate
b11e215827 Refactoring Router to eliminate usage of NeatArray
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3894 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 16:33:50 +00:00
phpnut
2ab7e5120d Removing Helper::readConfigFile().
tags.ini.php will not be used as of 1.2
file should be changed to tags.php and use php arrays.
$tags['tagname'] = 'value';

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3893 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 04:27:23 +00:00
phpnut
056bda7e4b Moving all tags from Helper to child classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3892 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 03:51:21 +00:00
phpnut
22588729d4 Moving helper tags to specific helper classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3891 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 03:32:58 +00:00
phpnut
204ff6bcbb Refactoring Helper class and adding tags.php as a var.
Removing old /config/tags.php

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3890 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 03:16:34 +00:00
phpnut
95c919a7a5 Updating changes made to the core files that are loaded
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3889 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-21 22:47:42 +00:00
nate
099144bcbd Changing Set interface to act like NeatArray, disabling Model::cacheQueries by default, and removing NeatArray usage in Model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3888 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-21 22:40:30 +00:00
nate
91b9b3be6c Fixing Notice on "Missing Model" page
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3886 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-21 22:03:52 +00:00
phpnut
c773b64bfe Starting to refactor model loading
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3885 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-21 21:48:05 +00:00
phpnut
30cf172bbc Refactoring helper tags
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3880 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-21 20:05:57 +00:00
dho
38a606d2a2 Adding doc strings
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3877 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-19 15:03:46 +00:00
gwoo
8b88865c29 1.2 RssHelper: fixing enclosure bug
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3876 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-18 22:58:29 +00:00
phpnut
7d63f4340c Changing the date string used in CakeLog::write() to use full 4 digit year
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3875 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-17 03:04:45 +00:00
gwoo
d31434336b fix for enclosures in rss helper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3871 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-15 16:33:57 +00:00
phpnut
8048251fd0 Added implementation of Validation::decimal()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3869 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-15 06:14:12 +00:00
phpnut
ac30edb9f0 Implementing custom regular expression in Validation::date()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3867 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-15 03:51:35 +00:00
phpnut
ded7398254 Adding doc comment for Validation::date()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3865 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-15 03:37:47 +00:00
phpnut
6f6b068227 Finishing Validation::date()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3864 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-15 03:08:41 +00:00
nate
85ee09fb19 Purging the "evil" from comments
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3862 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-14 16:20:52 +00:00
nate
47c86b8c8b Minimizing RequestHandler array usage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3861 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-12 19:55:30 +00:00
phpnut
f95285d75f Starting to change all core code that uses $this->params
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3859 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-12 00:12:34 +00:00
nate
99a420c8ef Refactoring code, adding error message to deprecated method (View::setLayout), and updating method references
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3858 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-11 21:05:00 +00:00
nate
26955aefda Adding coding-issue fix (Ticket #1633), and insert ID fix (Ticket #1641), and updating method reference
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3857 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-10 18:45:46 +00:00
nate
31623de654 Adding $scripts_for_layout to default template
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3856 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-10 18:41:35 +00:00
nate
bd4f1aceff Modifying JavascriptHelper::link() to accept arrays of links, and adding warning for deprecated methods
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3855 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-10 18:31:27 +00:00
nate
6ba7032e68 Moving strip_plugin() to Router::stripPlugin(), and enabling reverse routes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3854 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-10 17:08:31 +00:00
phpnut
3ca4762d32 Adding Validation::date() implementation for:
mm/dd/yyyy mm/dd/yy m/d/yy m/d/yyyy
yyyy/mm/dd yy/mm/dd y/m/d/ /yyyy/m/d/

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3853 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-09 16:26:54 +00:00
phpnut
678e1be889 Adding Validation::date() implementation for dd/mm/yyyy dd/mm/yy d/m/yy d/m/yyyy
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3851 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-09 14:19:32 +00:00
phpnut
fa3e71d169 Additional changes to Validation::comparison()
Refactored Validation::custom()to set an error.
Added more doc comments.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3849 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 22:48:15 +00:00
phpnut
2a5f53ddb9 Changes made to Validation::comparison().
Added Validation::__reset().
Removed redundant code.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3847 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 21:15:34 +00:00
phpnut
a046a338bb Changed Validation::cc() so custom regex match will call Validation::_luhn()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3845 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 12:50:39 +00:00
phpnut
57ef07a04d Added additional credit card validation regex in Validation:cc().
Added Validation::_luhn() to check the Luhn algorithm or credit cards.
[http://en.wikipedia.org/wiki/Luhn_algorithm Luhn algorithm]
Added new doc comments for both methods

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3843 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 10:55:07 +00:00
nate
075891f1f9 Refactoring code and updating method references
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3841 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 03:28:24 +00:00
nate
13c579292a Refactoring and moving countdim() to Set::countDim()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3840 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 03:26:09 +00:00
nate
97753554c6 Adding Security::requireSecure() to require controller actions to be accessed via SSL-secured connections
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3839 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 02:18:41 +00:00
nate
199eac5a35 moving strip_plugin() to Router::stripPlugin()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3838 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 02:07:11 +00:00
phpnut
803bf4d0e4 Correcting Validation::blank() implementation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3837 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 01:56:07 +00:00
phpnut
d2ffbe2016 Adding changes to Validation::alphaNumeric().
Added doc comment to Validation::alphaNumeric() and Validation::between()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3835 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 01:09:56 +00:00
phpnut
20da5e67a7 Formatting Validation class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3830 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-07 21:05:48 +00:00
phpnut
b42373467f Adding fix for scaffold when using an alias association, mostly found on self joined models, or models that have multiple associations to the same model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3820 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-03 21:01:24 +00:00
gwoo
8fef7cf4ba 1.2: fix for groupPath recursive in generateList
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3819 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-03 19:49:32 +00:00
nate
cf6aef3059 Enabling full base URL to be used with array-based URLs in Router::url() (Ticket #1444)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3818 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-03 19:38:54 +00:00
nate
3b8b34114b Adding path fixes for DataSource loading
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3809 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-03 05:45:11 +00:00
nate
e17610842c Refactoring RequestHandler::setAjax() to use respondAs(), adding fix for respondAs(), and adding RequestHandler::isSSL() (Ticket #1604)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3808 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-03 04:53:27 +00:00
nate
eb01aad01d Fixing associations for ADODB driver (Ticket #1568)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3806 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-03 04:10:40 +00:00
gwoo
9b659da949 1.2: changing some names in Xml class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3804 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-02 19:20:50 +00:00
nate
b002cd0ec3 Updating method names in XML and XMLNode
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3803 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-02 18:08:21 +00:00
nate
50da950aba Fixing Model::findCount() for ADODB (Ticket #1613)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3802 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-02 14:44:44 +00:00
phpnut
d4e539f1a5 Removing inline comment since \n is not longer converted to < br/>
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3800 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-02 03:51:26 +00:00
phpnut
dedb404423 Merging fixes for associations to 1.1.x.x branch
Removed commented code from Model::_ _generateAssociation() in 1.2.x.x

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3796 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-01 20:31:45 +00:00
phpnut
708dc77ae8 Merging __mergeAssociation() into 1.2 branch
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3793 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-01 19:27:08 +00:00
phpnut
f187ac9cef Adding fix for IN( sql.
Merging fixes between versions

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3792 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-01 19:19:11 +00:00
dho
613bb29300 Adding special log output for cli
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3791 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-01 15:58:52 +00:00
phpnut
9bc506b058 Merging fixes from 1.2.x.x into 1.1.x.x and vice versa.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3788 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-01 07:15:44 +00:00
phpnut
d6b2545628 Adding fix for #1544.
Adds additional path searches for elements and layouts

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3786 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-01 06:51:57 +00:00
nate
e72eba2f82 Fixing PostgreSQL boolean conversion (Ticket #1586), and fixing code formatting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3784 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-01 06:14:50 +00:00
phpnut
ce9f9bc4da Adding $this->params['requested']; if method is called through requestAction
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3783 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-01 04:54:25 +00:00
phpnut
29ba60481a Fixing DboSource::execute() so it only logs when fullDebug is set to true
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3782 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-01 03:52:41 +00:00
phpnut
b4306ac594 Adding fix for #1606
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3781 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-01 03:24:49 +00:00
phpnut
d7724fbfc4 Adding Controller::_selectedArray() to 1.1.x.x branch
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3779 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-31 19:35:47 +00:00
phpnut
19f5a9b677 Adding fix for #1556.
Errors are no longer cached

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3774 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-31 06:52:04 +00:00
phpnut
f22dc77ea1 Added fix for #1442.
SessionHelper was creating a second instance of CakeSession which would call the session_start(). Added a second param that can be set to false so this does not happen anymore

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3771 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-31 06:06:16 +00:00
phpnut
d9113f5165 Adding fix #1532
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3770 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-31 05:23:37 +00:00
phpnut
8963f1d4e1 Added fix for #1535.
Whitespaces are now preserved in error messages

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3769 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-31 05:01:48 +00:00
phpnut
54583f0afe Changing code in View::_loadHelpers() to use Inflector::variable()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3767 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-31 03:20:57 +00:00
phpnut
1634eefce5 Adding Inflector::variable() to create camelBacked version of a string
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3766 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-31 03:14:26 +00:00
nate
40381bf3ff Allowing SessionComponent::write() to accept an associative array of keys/values
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3763 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-30 16:35:57 +00:00
nate
802ec2d913 HTML-escaping select option titles (Ticket #1577)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3761 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-28 16:02:58 +00:00
phpnut
02df38c26f Renaming user_id to foreign_key in all ACL scripts
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3758 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-28 04:40:30 +00:00
phpnut
6af7c6cca9 Added fix for #1317.
Method would return true on the first loop if persistModel was set to true.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3756 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-28 02:54:41 +00:00
nate
add6e512e7 Adding Model::__wakeup() (Ticket #1582)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3754 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-28 00:42:51 +00:00
nate
0bab7de4d6 Updating docblock for Model::create
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3753 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-27 22:35:40 +00:00
nate
d22e84af09 Fixing code formatting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3752 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-27 21:42:29 +00:00
nate
de52eb88c9 Updating helper class hierarchy, and adding 1.2 fix for Ticket #1569
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3750 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-27 21:40:34 +00:00
nate
45f27cda1c Refactoring Model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3748 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-27 18:14:35 +00:00
nate
b90109059c Removing references to $this (Ticket #1587)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3743 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-26 16:29:10 +00:00
phpnut
12a6df23ef Adding Controller::_selectedArray().
Changed Bake to use _selectedArray instead of _ _selectedArray()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3742 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-26 03:08:53 +00:00
nate
79a8944ba4 Refactoring Dbo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3741 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-25 13:43:35 +00:00
nate
2046eed40d Refactoring DboSource
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3740 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-25 13:27:32 +00:00
gwoo
42676402d3 fix for #1572, $this->id set to lastInsertId after save
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3739 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-25 12:07:16 +00:00
nate
81342be675 Adding additional options for Object::trace()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3732 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-21 01:46:22 +00:00
gwoo
8b680a0107 1.2: router fix for plugins in url()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3731 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-20 21:58:43 +00:00
gwoo
da2cf11ef3 1.2: pass the plugin name to renderElement
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3730 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-20 21:48:35 +00:00
nate
4caa838d09 Adding output fix for dynamically-called methods
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3728 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-20 19:20:50 +00:00
nate
2993a8d412 Adding Router path fixes for error pages (Ticket #1566), fixing code formatting (Dispatcher), and adding API enhancements for model behaviors
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3727 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-20 17:24:37 +00:00
nate
607158de45 Removing deprecated method AjaxHelper::linkToRemote()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3726 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-20 17:22:23 +00:00
nate
3ed7c6e931 Adding 1.2 fix for Ticket #1498
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3725 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-20 02:32:50 +00:00
phpnut
64359fe7ba Removing functions from basics.php that where added as workarounds for PHP < 4.3.
Removing legacy.php and all references to the file

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3717 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-19 00:37:29 +00:00
nate
fd4d9e41e2 Additional commit for [3713]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3716 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 23:03:55 +00:00
nate
9c8d4d83dd Adding Router fix for # URLs (Ticket #1552)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3715 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 21:15:54 +00:00
nate
7506859555 Fixing DataSource path typo in ConnectionManager, and removing hardcoded paths to DboSource
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3713 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 19:35:29 +00:00
nate
114a465a36 Adding fix for Ticket #1551
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3712 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 18:07:55 +00:00
nate
57f27126bd Adding conditions-based updating to DboSource
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3709 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 15:38:37 +00:00
phpnut
37329bb385 Reverting changes in [3706]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3707 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 12:55:19 +00:00
phpnut
e6e50dc936 Warning: Invalid argument supplied for foreach() in /project/cake/libs/controller/controller.php on line 724
Error would occur when the associated table did not contain any records

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3706 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 12:23:28 +00:00
gwoo
d485edd1ab adding fix for generate list to 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3703 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 01:07:09 +00:00
nate
b570516c7e Adding more docblock information to RequestHandler, and enhancement for respondAs()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3699 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-17 20:23:30 +00:00
nate
eea428e55d Code formatting and 1.2 interface updates
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3689 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-16 20:02:34 +00:00
nate
8b23234b53 Fixing code formatting in DBOs
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3668 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-14 17:21:28 +00:00
nate
3a03674c76 Moving DataSource::getFieldValue to Set::extract
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3667 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-14 17:19:03 +00:00
gwoo
94bd840e8a another fix for Set::extract()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3653 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 20:21:38 +00:00
gwoo
d39b398a20 another fix for Set::extract()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3651 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 20:08:00 +00:00
gwoo
294bf20624 fixing Set::extract()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3645 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 19:00:04 +00:00
gwoo
80481ae318 added extract() to Set, added format() to TimeHelper, fixed bake admin views creation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3636 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 07:41:10 +00:00
nate
8a64ba93fc Refactoring Paginator helper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3631 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-12 20:03:58 +00:00
phpnut
e2ffad5a65 Reverting changes made in [3622] and reopening ticket #1442
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3630 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-12 20:03:56 +00:00
nate
91f6adcfab Adding Paginator helper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3629 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-12 19:45:12 +00:00
nate
d66ca81671 Adding validation logic fix (Ticket #1518)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3628 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-10 22:29:13 +00:00
phpnut
ebbb773c57 Moving session_start to CakeSession::__begin()
Fixes #1442 

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3622 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-10 00:49:38 +00:00
phpnut
af7856e505 Adding fix for #1489
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3621 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-09 23:44:20 +00:00
nate
d412939912 Refactoring Model::save and teaching Model to eat XML
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3620 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-09 22:00:22 +00:00
nate
76e52d3862 Adding fix for decimal numbers being quoted (Ticket #1360)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3618 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-09 21:42:35 +00:00
phpnut
d88f2bae9a Reverting changes made to the Session class related to #1442
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3617 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-09 21:33:13 +00:00
nate
0544a063f6 Adding 1.2 fix for Ticket #1442
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3616 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-09 21:06:29 +00:00
nate
1842759ed4 Adding 'with' join fixes, and field quoting fix for Ticket #1445
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3614 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-09 21:03:45 +00:00
nate
dc5a209a03 Adding fix for Ticket #1514 (1.2)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3611 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-09 15:53:09 +00:00
nate
a0ee5743e5 Allowing user to specify database for ACL tables. (Ticket #1508)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3610 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-09 15:47:50 +00:00
nate
81679cc123 Adding fix for Ticket #1468
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3608 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-08 15:30:58 +00:00
nate
3c1a71027d Transitioning to allow mulitple IDs in form inputs, and adding fix for Ticket #1468
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3607 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-08 15:30:32 +00:00
nate
c5befd7569 Adding ability to auto-serialize POSTed XML data, and requestedWith(), for detecting Content-type of POSTed data
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3606 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-08 14:52:58 +00:00
nate
5a170cc2da Fixing XML header generator, and adding ability to build XML from objects or model results arrays
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3605 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-08 14:30:28 +00:00
nate
7df9917319 De-enforcing key naming conventions when converting Model results to object
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3604 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-06 18:39:38 +00:00