Commit graph

429 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
dho
4a9f72cefa Applied patch for ticket #1501, modified doc block of select function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3599 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-05 08:50:04 +00:00
nate
0771adf8c9 Adding default JavaScript template
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3596 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-30 23:23:09 +00:00
nate
04a095d45a Adding field type interpreting to FormHelper::input()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3595 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-29 01:32:09 +00:00
nate
d783b537e5 Removing reference to HtmlHelper::linkOut in TextHelper::autoLinkUrls (Ticket #1468)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3592 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-28 23:54:06 +00:00
nate
03ec6ccb2a Adding helper object variables to Helper base class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3590 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-28 22:27:31 +00:00
nate
5bb71da382 Adding fix for single-DIV updates not being properly outputted
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3589 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-28 21:15:27 +00:00
gwoo
c3bd56d464 adding fix for #1461
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3582 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-28 17:15:35 +00:00
gwoo
5025a6dfcb selectOptions is good now
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3580 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-28 02:57:29 +00:00
gwoo
89b34f30ca fixing wrong file name for missing component in 1.2, and fixing some bad code I introduced into the form helper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3579 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-28 02:38:58 +00:00
gwoo
67aba9ea45 updating FormHelper::select and __selectOptions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3578 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-26 19:53:22 +00:00
nate
48d00ed018 Syntax fix in RSSHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3571 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-22 17:52:13 +00:00
gwoo
11b0fe92bc adding fix for showEmpty on date time options, merging a couple other changes from the 1.1 helper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3542 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-21 21:43:22 +00:00
phpnut
cc8b842467 Adding fix for #1353
magic_quotes_runtime would double quote the html source of the tags.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3529 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-20 15:08:41 +00:00
nate
08948afbd8 Adding 1.2 branch fix for Ticket #1295 (AjaxHelper::_optionsToString)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3517 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-19 05:18:47 +00:00
phpnut
9eb0c89035 Removed extra ; in [3500]
Merged fixed from [3500] into branches/1.2.x.x/cake/libs/view/helpers/html.php

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3501 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-16 01:41:36 +00:00
phpnut
5e72327e47 Adding fix for CacheHelper replacing the wrong values in the CacheHelper::__parseOutput()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3494 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-15 04:38:23 +00:00
phpnut
91ccb116eb Adding fix for #1281
View::renderCache() now removes the <!--cachetime:#--> from the output

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3493 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-15 02:13:21 +00:00
phpnut
6675bf9e62 Adding fix for #1302
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3492 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-15 00:36:35 +00:00
nate
39c32d0454 Adding default parameter for TextHelper::truncate
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3466 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-11 18:01:00 +00:00
nate
28b18839c3 Minor fixes and updates to HtmlHelper and FormHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3461 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-10 17:30:29 +00:00
phpnut
e08a4a1da6 Merging changes for SessionHelper into 1.2.x.x branch
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3458 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-10 14:33:20 +00:00
nate
8cfaa0538b Adding SessionHelper to 1.2 branch
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3455 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-07 20:35:35 +00:00
nate
a4dbb38d78 Fixing field() issue in HtmlHelper::radio()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3445 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-01 13:47:21 +00:00
nate
e812204ebc Moving model and field information into view
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3443 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-30 16:23:24 +00:00
nate
88079265b2 Adding $scripts_for_layout view variable, View::addScript(), and extra parameters to relevant HtmlHelper methods
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3438 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-28 20:41:08 +00:00
nate
05d954a5bf Adding quotes around JSON keys (Ticket #702)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3437 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-28 15:40:19 +00:00
nate
00df232f9e Fixing /admin issue with HtmlHelper::url() (Sort-of covered by Ticket #1340)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3436 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-27 17:49:50 +00:00
nate
4f53c301a8 Fixing URLs in HtmlHelper::meta(), and moving textarea() to FormHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3427 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-22 19:35:08 +00:00
nate
e2efcc108c Initial import of RSS and XML helpers
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3425 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-22 08:05:44 +00:00
nate
8041562a76 Adding variable access convenience methods to View
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3423 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-22 07:32:59 +00:00
nate
4c45120b75 Fixing '#' issue with HtmlHelper::url()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3422 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-22 07:29:13 +00:00
nate
2370ee9512 Adding default RSS layout, and upading default XML layout
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3421 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-22 07:28:29 +00:00
nate
f762385bf6 Removing AUTO_OUTPUT references from TimeHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3418 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-22 07:26:03 +00:00
nate
6535c4936c Fixing code formatting in View
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3416 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-20 22:21:22 +00:00
nate
fd99791566 Removing all references to AUTO_OUTPUT, adding HtmlHelper::meta() for creating <link /> tags, and enhancing HtmlHelper::url()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3414 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-20 21:54:50 +00:00
nate
866ea4bd5e Adding automagic content-type-to-view-template mapping for use with Router::parseExtensions(). Also adding default XML template.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3411 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-18 08:05:00 +00:00
nate
2acff78b48 Adding Helper callbacks
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3410 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-18 08:03:32 +00:00
nate
1de5fee5bb Adding View::set(), allowing templates/elements to set variables for layout
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3396 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-12 01:18:28 +00:00
nate
8622b6f9ce Removing debug code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3395 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-10 17:06:39 +00:00
nate
02ed400c61 Fixing issue in FormHelper::select() with $options array numeric keys being reset
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3394 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-10 17:05:59 +00:00
nate
9c75c34b62 Updating HtmlHelper::link and HtmlHelper::url docblocks
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3393 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-10 04:15:19 +00:00
nate
44b45bd4e5 Adding array-based URL support in HtmlHelper::url(), and refactoring HtmlHelper::link()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3392 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-10 03:57:41 +00:00
nate
cd381d62cf Adding fix for empty option group names in FormHelper::selectOptions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3378 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-07 00:48:25 +00:00
nate
26977195c3 Fixing class name reference in TextHelper ('Html' -> 'HtmlHelper')
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3370 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-06 17:55:01 +00:00
phpnut
0e527f46bf Reomved doc block comment from FormHelper class.
Corrected change made to the $expires variable


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3358 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-04 08:07:50 +00:00
phpnut
d0d1ce73cd Added FormHelper::create() to use in place of deprecated
HtmlHelper::formTag().
Fixed SecurityComponent so the _Token can be wrote to sessions



git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3357 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-04 08:03:39 +00:00
phpnut
3c8148924e Added layout to the cached view.
Added check in View::renderCache() for xml layout, if the layout is xml 
then correct header will be sent.
Before it would render text output


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3356 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-03 19:31:57 +00:00
phpnut
badf1edc0b Added missing vars to cached files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3355 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-03 19:17:56 +00:00
phpnut
7232325624 Added TimeHelper::gmt()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3354 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-03 18:50:06 +00:00
nate
d30ff86369 Duplicating changeset [3344]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3345 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-01 04:20:51 +00:00
nate
c0300e35af Duplicating fixes from [3341]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3342 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-01 04:07:04 +00:00
nate
2b69e99ae3 Refactoring View and SecurityComponent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3327 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-31 23:55:29 +00:00
nate
a75f33f430 Adding optgroup support for 2D arrays in FormHelper::select(); adding grouping ability to Model::generateList()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3326 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-30 23:31:04 +00:00
nate
4d5a8cda92 Adding FormHelper::select() and FormHelper::selectOptions(). Deprecates HtmlHelper::selectTag().
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3323 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-30 12:19:48 +00:00
phpnut
fc431393fb Removed depreciated calls to FormHelper::labelTag();
Added fixes from 1.1.x.x to HtmlHelper::dateTimeOptionTag();


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3320 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 18:12:45 +00:00
phpnut
06f8fbb7c9 Adding FormHelper::generateTime()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3319 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 18:01:50 +00:00
phpnut
943454d280 Adding time to FormHelper::generateFields()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3318 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 17:55:22 +00:00
phpnut
566f1b60b9 Fixing errors when trying to use plugin components.
Added Controller::_initComponents();
Changed helpers and components to allow using plugins helpers or 
components.
Syntax:
var $helpers = array('PluginName/HelperName');
var $components= array('PluginName/ComponentName');


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3315 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 17:08:23 +00:00
phpnut
4594e09cde Adding changes for new Theme view
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3313 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 05:59:42 +00:00
phpnut
8b69475c08 "Adding theme view to 1.2.x.x branch"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3309 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 04:16:54 +00:00
phpnut
0ae0905004 Adding fix for Ticket #1219.
Checking for an object being passed.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3306 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-27 17:13:02 +00:00
phpnut
5549ddfd75 Replacing labelTag with new label().
Merged changes to bake.php


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3305 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-27 16:52:36 +00:00
nate
1dc6c1128b Adding TextHelper::toList(), to create natural-language lists from arrays
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3304 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-27 04:20:30 +00:00
nate
c50275de24 Cleaning up TextHelper code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3303 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-27 04:12:24 +00:00
nate
71a119ba3d Fixing up FormHelper::label
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3299 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-25 02:18:37 +00:00
nate
de0c4e8500 Implementing Form.Element.EventObserver in AjaxHelper::observeField (Ticket #1194)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3294 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-23 16:10:35 +00:00
nate
07ec77ef22 Adding model behaviors, model onError callback, and updating FormHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3280 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-22 14:13:07 +00:00
phpnut
6dc000f826 Beginning to port fixes to 1.2.x.x code from 1.1.x.x
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3269 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-15 03:47:27 +00:00
phpnut
6d71310f00 Beginning to port fixes to 1.2.x.x code from 1.1.x.x
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3268 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-15 03:36:53 +00:00
nate
0a5b1b6450 Adding fix for Ticket #1063
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3234 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-12 04:25:00 +00:00
nate
5af4c7e372 Adding same fixes as [3225] and [3223], and adding HtmlHelper::para() and HtmlHelper::div()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3226 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-11 14:34:35 +00:00
phpnut
43fd87e5bc Adding fix for Html::selectTag();
Fix corrects the last selected value from being dropped


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3214 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-07 16:24:22 +00:00
nate
c65e645f8c Adding fix for Ticket #1102
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3209 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-06 16:44:03 +00:00
phpnut
08b8fca099 Removing bad character in last commit.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3206 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-06 13:45:13 +00:00
phpnut
3f2bc3ab82 Adding fix for PHP 5.2 errors.
The View::__construct() had a check for $controller != null;
Removing this fixed the errors related to not setting the vars from the controller instance.

Removed $this->parent =& $this->controller->parent; and $this->displayFields=&$this->controller->displayFields; which are not defined in the core Controller

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3204 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-06 13:04:21 +00:00
nate
86fc29facb Adding join table selects (MySQL-only so far), findBy/findAllBy magic method enhancements (Ticket #412)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3200 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-04 01:29:48 +00:00
nate
4f425785d0 Adding DOM ID to controller dump, Ticket #1045
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3196 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-29 06:27:57 +00:00
nate
baf2364c83 Adding $safe param to JavascriptHelper::codeBlock() to wrap JS code in comment and CDATA tags for compatibility with older browsers and XHTML (Ticket #1072)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3194 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-29 05:30:56 +00:00
nate
1bce3d3dbe Fixing example component file name in error page (Ticket #1083)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3192 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-29 04:26:15 +00:00
nate
b4c3a22bd6 Fixing string escaping in object(), adding enhancements to event(), and consolidating linkOut into link()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3186 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-27 10:35:02 +00:00
nate
5df320bb89 Adding fixes as optimizations for mutli-div updates
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3185 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-27 10:29:35 +00:00
phpnut
8c6b0576af Merging changes from 1.1.x.x branch:
[3157]

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3158 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-22 20:42:53 +00:00
phpnut
342a91e09d removed depreciated *tag()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3142 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-19 18:18:23 +00:00
nate
dfb49aad38 Adding additional fixes for autoComplete(), Ticket #1002
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3131 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-18 19:21:09 +00:00
nate
66a3bb94ce Removing references to deprecated methods and fixing code formatting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3126 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-17 13:57:44 +00:00
nate
5de968246f Fixing NumberHelper code formatting, and adding currency() method (Ticket #853)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3124 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-17 03:19:43 +00:00
nate
2db82c2b30 Removing deprecated methods that are not in common usage, and adding HtmlHelper::docType() to generate doctype tags
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3123 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-17 02:33:12 +00:00
nate
96ce786fe7 Added support for InPlaceCollectionEditor in AjaxHelper::editor (when 'collection' key added to options). Updated all script.aculo.us controls, and refactored and formatted code.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3119 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-16 19:02:30 +00:00
nate
6ea773a946 Fixing Ticket #1017 - added AjaxHelper::isAjax() to detect Ajax requests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3118 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-16 16:10:28 +00:00
nate
9e00a87b1c Adding fix for Ticket #20, added isThisWeek(date) and isThisMonth($date)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3117 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 19:26:13 +00:00
nate
79ba4fa94d Fixing code formatting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3114 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 15:29:06 +00:00
nate
50411bd87b Adding fix for Ticket #900
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3110 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 13:40:02 +00:00
nate
ae3a8d0f9e Adding fix for Ticket #1005
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3105 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 12:12:46 +00:00
nate
d09f6c4de9 Adding fix for Ticket #856, and additional code formatting fixes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3098 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-14 23:24:54 +00:00
phpnut
9d19dee879 Renaming branched version directory
git-svn-id: https://svn.cakephp.org/repo/branches/1.1.x.x@3085 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-14 18:02:37 +00:00
phpnut
e5c074a0dc Merging fixes into 1.x.x.x branched code:
Revision: [2955]

Revision: [2951]

Revision: [2918]

Revision: [2911]

git-svn-id: https://svn.cakephp.org/repo/branches/1.x.x.x@2958 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-05-26 05:29:17 +00:00
phpnut
1dc168abc7 Merging fixes into 1.x.x.x branched code:
Revision: [2887]

git-svn-id: https://svn.cakephp.org/repo/branches/1.x.x.x@2890 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-05-16 20:46:06 +00:00
phpnut
5e268e0805 Merging fixes into 1.x.x.x branched code:
Revision: [2802]




git-svn-id: https://svn.cakephp.org/repo/branches/1.x.x.x@2805 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-05-09 02:15:47 +00:00
phpnut
f5a4a58758 Renaming directory for 1.x.x.x code base
git-svn-id: https://svn.cakephp.org/repo/branches/1.x.x.x@2771 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-05-07 03:35:58 +00:00
phpnut
e41214da87 Merging fixes into 1.x.x.x branched code:
Revision: [2706]
Adding check for selecting insert id's

Revision: [2701]
Adding fix for Ticket #727

Revision: [2700]
Added patch from Ticket #730

Revision: [2698]
Added fix for Ticket #732

Revision: [2696]
More dbo_source::order() fixes

Revision: [2695]
Adding fix for order(), and results checking in __filterResults()

git-svn-id: https://svn.cakephp.org/repo/branches/1.0.0.2685@2727 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-05-04 00:35:48 +00:00
phpnut
e385b666dd Merging fixes into the trunk.
Revision: [2641]
Adding fix for file upload data

Revision: [2640]
Disabling Dispatcher access to controller callbacks

Revision: [2639]
Fixing output bug in AjaxHelper::link()

Revision: [2638]
Adding fix for Ticket #714 (The OC! [not the tv show])

Revision: [2637]
Additional refactoring of DB_ACL


git-svn-id: https://svn.cakephp.org/repo/trunk/cake/1.x.x.x@2642 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-29 21:51:30 +00:00
phpnut
0c0dec8bc0 Merging fixes into the trunk.
Revision: [2629]
Fixed recursive associations when set to 0, did not add the hasOne or belongsTo in the query.
Changed scaffold to use recursive setting of 0 in all methods that call Model::findAll()
Fixed Invalid argument supplied for foreach() notice in show.thtml
Removed 500 record limit in Controller::generateFieldNames()

Revision: [2628]
Merging changes from model_php5.php

Revision: [2627]
Fixing messed up characters in dbo_odbc, adding docstrings, and giving connect() a return value

Revision: [2625]
Bringing all DB drivers up to date

Revision: [2624]
Changed fixed for Ticket #609 so and empty array is set instead of null.
This is more consistent with the other arrays that are returned if an association is found

Revision: [2623]
Adding fix for Ticket #712

git-svn-id: https://svn.cakephp.org/repo/trunk/cake/1.x.x.x@2630 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-28 05:26:06 +00:00
phpnut
4a8c03ef1c Merging fixes into the trunk.
Revision: [2618]
Adding fix for Ticket #609

Revision: [2617]
Added fix for Ticket #684

Revision: [2616]
Adding patch from Ticket #649

Revision: [2615]
Adding fix for Ticket #608

Revision: [2614]
Additional fix for Ticket #584

Revision: [2613]
Adding fix for Ticket #584

Revision: [2612]
Added fix for undefined index notices

Revision: [2609]
Adding fix for Ticket #658

Revision: [2608]
Adding fix for Ticket #635, and code formatting fixes in FormHelper

Revision: [2607]
Adding fix for Ticket #636

Revision: [2606]
Adding fix to allow associations to be defined through non-associative arrays

Revision: [2605]
Adding fix for Ticket #672

Revision: [2604]
Adding fix for Ticket #708

Revision: [2603]
Adding fix for Ticket #687

Revision: [2602]
Refactoring database drivers, and adding fix for Ticket #398

Revision: [2601]
Merging change from model_php5.php

Revision: [2600]
Adding ODBC driver

Revision: [2599]
Adding fix for Ticket #702

Revision: [2598]
Adding fix for Ticket #699

Revision: [2597]
Fixing an issue in Model::set(), and moving limit() to DboSource

Revision: [2595]
Fixing unit test download URL in Bake

Revision: [2594]
Adding fix for Ticket #698

Revision: [2593]
Adding fox for Ticket #231

Revision: [2592]
Adding fix for Ticket #630, and updating MS SQL driver docstring

Revision: [2577]
Adding $alias property to enable future Oracle support

Revision: [2568]
Merging changes to bake from old sandboxes

git-svn-id: https://svn.cakephp.org/repo/trunk/cake/1.x.x.x@2620 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-27 10:04:08 +00:00
phpnut
f590c2bb92 renaming trunk/cake directory
git-svn-id: https://svn.cakephp.org/repo/trunk/1.x.x.x@2561 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 21:24:11 +00:00
phpnut
32f9e1e0e5 Merging fixes into trunk.
Revision: [2522]
renamed Bake class file

Revision: [2521]
removing old bake scripts

Revision: [2520]
Adding new Bake script

Revision: [2519]
Adding fix for Ticket #622

Revision: [2518]
Adding fix for Ticket #535

Revision: [2517]
Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model

Revision: [2516]
Adding fix for Ticket #618

Revision: [2515]
More error page fixes

Revision: [2514]
Adding fix for Ticket #690

Revision: [2513]
Removing empty method

Revision: [2512]
Adding fix for Ticket #675

Revision: [2511]
More fixes for Ticket #670

Revision: [2510]
Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1.

Revision: [2509]
Adding fixes for Tickets #677 and #681

Revision: [2508]
Added patch from Ticket #632

Revision: [2502]
Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore

Revision: [2501]
Rewriting foreach loops in queryAssociation()

Revision: [2493]
Adding fix for Ticket #673

Revision: [2492]
Adding reconnect() method, to reconnect to database with different settings

Revision: [2491]
Adding Microsoft SQL Server driver [EXPERIMENTAL]

Revision: [2490]
Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations

Revision: [2488]
Adding fix for Ticket #651

Revision: [2487]
Adding fix for Ticket #665

Revision: [2486]
Adding fix for Ticket #655

Revision: [2485]
Forcing DboMysql to validate disconnect, and adding fix for Ticket #663

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
phpnut
e3cadc0eb4 Merging fixes and enhancements into trunk.
Revision: [2470]
Adding fix for Ticket #653

Revision: [2469]
Adding fix for Ticket #652

Revision: [2468]
Enabling table list caching for DB DataSources

Revision: [2467]
Adding fix for Ticket #623

Revision: [2466]
Adding fix for Ticket #652

Revision: [2465]
More dbo_source::order() fixes, moving query() to dbo_source, and supporting additional find/findAll parameters in magic find methods

Revision: [2464]
Adding fixes for Ticket #610

Revision: [2463]
Adding an alias fix in DBO_Source, and an IIS rewrite patch for setUri()

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2477 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-11 15:46:29 +00:00
phpnut
43e074acb0 Merging fixes and enhancements into trunk.
Revision: [2457]
Adding fix for Ticket #612

Revision: [2456]
"Enables use of Controller::$data in addition to Controller::$params['data']"

Revision: [2455]
"Adding fix for Ticket #634"

Revision: [2454]
"Removing trailing directory separator on ROOT"

Revision: [2451]
Dispatching and routing changes for IIS

Revision: [2450]
Downgrading error level in AclNode::create and adding additional filename check in listClasses()


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2462 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-06 00:06:02 +00:00
phpnut
c899c085f5 Merging fixes and enhancements into trunk.
Revision: [2448]
removing tabs in last commit

Revision: [2447]
Adding fix for limit in all associations

Revision: [2446]
Added fix for Ticket #569

Revision: [2443]
Adding fix for Ticket #592.

Revision: [2437]
Adding fix for Model::findNeighbours().
Was returning all associations and fields. Now recursive is set to 0 and only returns the prev and next keys array

Example $this->Category->findNeighbours(null, 'Category.id', 4);

Will return,

Array
(
    [prev] => Array
        (
            [Category] => Array
                (
                    [id] => 3
                )

        )

    [next] => Array
        (
            [Category] => Array
                (
                    [id] => 5
                )

        )

)

Revision: [2432]
Removed the DS constant from the plugin var when it is set in Dispatcher.
Added "$this->plugin.DS." constant in files where needed after change above.
Added fix for Ticket #577.

Revision: [2428]
Added fix for HtmlHelper::checkbox() it ignored the value provided as a parameter
Fix for Ticket #605.
Fix for Ticket #607.


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2449 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-28 19:46:59 +00:00
phpnut
87d703eaa5 Merging fixes and enhancements into trunk.
Revision: [2426]
Added patch from Ticket #566.

Revision: [2425]
Adding patch from Ticket #603.

Revision: [2424]
Adding fix for Ticket #604

Revision: [2423]
Adding fix for Ticket #601

Revision: [2422]
Refactoring ACL and updating queries

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2427 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-28 02:44:55 +00:00
phpnut
c141859d3a Merging fixes and enhancements into trunk.
Revision: [2420]
Added fix for Ticket #320.
Fixed Model::save() so it will only allow a model to save itself.
Fixed Model::save() when saving a HABTM association

Revision: [2419]
Added fix for Ticket #463

Revision: [2418]
Added patch from Ticket #598

Revision: [2417]
Added fix for Ticket #581

Revision: [2416]
Adding fix for Ticket #579

Revision: [2415]
Adding patch from Ticket #597

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2421 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-26 19:15:30 +00:00
phpnut
23b0101ff8 Merging fixes and enhancements into trunk.
Revision: [2413]
Adding fix for Model::bindModel() when association name is different from className setting in the array.
Removed second param in Model::__generateAssociation() that was not used.
Removed unneeded foreach() in Model::__createLinks().

Revision: [2412]
Adding fix for Ticket #564 

Revision: [2411]
Adding fix for Ticket #596.
Also found other variables that where not used properly

Revision: [2410]
Added fix for Ticket #561


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2414 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-26 17:31:33 +00:00
phpnut
d595e46055 Merging fixes and enhancements into trunk.
Revision: [2406]
Adding model persistence when using var $uses array.
Added var $name to PagesController

Revision: [2405]
Adding 5 of the 7 patches from Ticket #594

Revision: [2404]
Added fix for Ticket #575

Revision: [2403]
"Adding fix for core vendors directory when cake installation is separated into different paths "

Revision: [2402]
Added fix for Ticket #588

Revision: [2397]
Adding fix for Ticket #580

Revision: [2387]
Adding fix for Ticket #558

Revision: [2386]
Adding fix for Ticket #562

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2407 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-26 09:59:40 +00:00
phpnut
78441c007c Merged fix into trunk
Revision: [2376]
Added fix from Ticket #556

Revision: [2375]
Added fix for Ticket #557

Revision: [2374]
Added fix for Ticket #552 and  Ticket #553

Revision: [2373]
Added fix for Ticket #554


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2377 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-19 14:13:07 +00:00
phpnut
5f249cd10e Merged fix into trunk
Revision: [2371]
Fixed wrong variable name that stopped views overriding the core

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2372 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-19 05:03:42 +00:00
phpnut
23d183e46b Merging fixes and enhancements into trunk.
Revision: [2369]
Added missing doc comments to classes

Revision: [2368]
Removing core view paths from Configure class

Revision: [2367]
Updating View class to use new Configure class to search paths for view files

Revision:[ 2366]
Corrected loadControllers() in basics.php

Revision: [2365]
Updating function in basics.php to use new Configure class

Revision: [2364]
removed duplicate loading of app/config/bootstrap.php

Revision: [2363]
Added new Configure class to hold paths to models, views, and controllers related to Ticket #470.
Moved loading of app/config/bootstrap.php to Configure class from app/webroot/index.php.
Added creating instance of Configure instance in cake/bootstrap.php
Added example of setting custom paths in app/config/bootstrap.php 
Corrected error in Object::_savePersistent().

Revision: [2362]
Added fix for Ticket #534

Revision: [2361]
Refactoring persistent code a little more.
File now holds a variable with the serialized class and is include vs. reading file contents.

Revision: [2360]
Refactored persistent methods to use cache()

Revision: [2359]
Fixing array_combine() Warning in  Model::generateList()

Revision: [2358]
Set var $persistModel to false by default

Revision: [2357]
Moved persistent code to Object class.
Moved $TIME_START variable to top of file.
added __sleep methods for models

Revision: [2356]
Reverting persistent changes to Model class

Revision: [2355]
Adding fix for Ticket #550

Revision: [2354]
Corrected errors in persistent code

Revision: [2353]
Corrected overwrite in the model/model_php4.php file.

Revision: [2352]
Adding persistent methods to Model class.
This will allow caching of classes.
Added app/tmp/persistent directory.

Revision: [2351]
Reverting changes to dbo_source.php in [2350]

Revision: [2350]
Removed name pattern matches related to Ticket #534

Revision: [2349]
Adding fix for Ticket #548

Revision: [2348]
Adding fixes from Ticket #547.

Revision: [2347]
Adding fixes from Ticket #546.

Revision: [2346]
Adding fix for Ticket #527

Revision: [2345]
Refactored Html::url()

Revision: [2344]
Last fix for Ticket #483 

Revision: [2343]
Updating last commit

Revision: [2342]
Adding fix for Ticket #483

Revision: [2341]
Adding fix for Ticket #543, DBO will now only cache SELECT queries

Revision: [2340]
Adding session_write_close() to the CakeSession::__regenerateId()

Revision: [2339]
Adding patch from Ticket #544

Revision: [2338]
Adding patch from Ticket #529

Revision: [2337]
Adding patch from Ticket #528

Revision: [2336]
Removing the converting of \n to <br /> in Sanitize::html()

Revision: [2335]
Added bash script from Ticket #533

Revision: [2334]
Added enhancement for Ticket #474

Revision: [2333]
Correcting errors introduced with prior fix

Revision: [2332]
Correcting errors introduced with prior fix

Revision: [2331]
Performance optimization for NeatArray::findIn(): replaced foreach loop with for

Revision: [2330]
Minor performance optimization: Replacing all occurrences of low() with strtolower()


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2370 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-19 03:26:43 +00:00
phpnut
1e666b23bb Merging fixes and enhancements into trunk.
Revision: [2323]
Adding SQL error message display.
Fixed  Invalid argument supplied for foreach() in dbo_source.php on line 472

Revision: [2322]
Fixed undefined index datasource.php on line 438

Revision: [2321]
Adding error messages for ConnectionManager if no database file is present.

Revision: [2320]
Merging changes from model_php5.php

Revision: [2319]
Removing $this->validationErrors = null; in Model::set();

Revision: [2318]
Refactoring Model::invalidFields()

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2324 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-16 01:50:55 +00:00
phpnut
fb46bcceef Merging fixes and enhancements into trunk.
Revision: [2316]
Added fix for message:  Warning: array_diff(): Argument #2 is not an array in Controller::__construct()

Revision: [2315]
Adding fix for Ticket #517

Revision: [2314]
Corrected scaffold throwing errors when irregular words are used for model/table names

Revision: [2313]
Added patch from Ticket #495.
Added missing ?> bracket at end of file

Revision: [2312]
Corrected model names being set to lower case, When matched to an irregular word in Inflector methods.
Added custom inflections.php file to allow application to have custom inflection rules.
Correct variable in View::renderCache(). error thrown if time class was used $time variable changed to $timeStart.

Revision: [2311]
Corrected $db placed in wrong section of the method

Revision: [2310]
Removing the db attribute from the model, This will help better with persistent objects

Revision: [2309]
Adding fix for Ticket #490

Revision: [2308]
Update to previous commit

Revision: [2307]
Removing references to Model->db. DataBase connections are now singleton-only.

Revision: [2306]
Refactoring getDataSource() into loadDataSource() and enumConnectionObjects()

Revision: [2305]
Reverting changes to this file

Revision: [2304]
Fixing Ticket #496, getColumnType, and docstrings

Revision: [2303]
Adding fix for Ticket #510


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2317 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-15 20:45:59 +00:00
phpnut
9f9c84de52 Merging fixes and enhancements into trunk Added fix for Ticket #492.
Revision: [2299]
Added fix for Ticket #494.
Added fix for Ticket #489.

Revision: [2298]
Fixed regex that would match more than one <cake:nocache></cake:nocache> group and cause a  wrong replace of the tags

Revision: [2297]
Corrected error in the convertSlash() function

Revision: [2296]
Another bug found and corrected after last commit.
This is working as expected now, and will be refactored.

Revision: [2295]
Fixed undefined index in CacheHelper::__parseFile();
Fixed caching when method is cached without params being set in the key

Revision: [2294]
Corrected caching for index method when accessing www.example.com/controller this would not use default index method.
Removed auto setting of the data variable in Controller::render();
Added additional check for cached index view in bootstrap.php

Revision: [2293]
Refactoring caching code.
Fixed problem with files being cached for all methods.
Added code to cache files to create helpers. 
Moved duplicate code to basics.php as a function

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2300 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-14 11:54:03 +00:00
phpnut
a5a96c9268 Revision: [2291]
Fixed error when using caching in PHP 4



git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2292 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-14 03:04:28 +00:00
phpnut
3f3ec6d42d Revision: [2289]
Removing unused var setting

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2290 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-14 02:32:58 +00:00