Commit graph

1777 commits

Author SHA1 Message Date
phpnut
156013f99e Added fix for #2545, fixes VALID_NUMBER does not allow negative values
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5047 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-12 08:50:42 +00:00
phpnut
82755f6685 Adding fix for #2552, fixes JavascriptHelper::object does not convert boolean values correctly
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5046 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-12 08:38:12 +00:00
phpnut
4353341e2c Adding fix for #2538, fixes findAll doesn't work with TranslateBehavior when specifying which fields to fetch
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5045 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-12 08:30:55 +00:00
phpnut
6837a51f50 Adding test for #2550.
Added fix for #2550, fixes incorrect inflection of Alias

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5044 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-12 08:13:45 +00:00
phpnut
2fa0bd866c Adding fix for #2534, refactored mysql and mysqli dbo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5043 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-12 06:35:32 +00:00
phpnut
94cbbe560f Added fox for #1815
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5042 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-12 05:49:22 +00:00
phpnut
c4f8a836e5 Adding fix for #2547, fixes issue when saving arrays with numeric keys
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5041 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-12 05:20:40 +00:00
dho
4513007f35 Applying patch of ticket #2560
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5040 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-11 13:05:55 +00:00
dho
6e4f66555d Removing unused function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5039 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-11 12:13:00 +00:00
gwoo
d1d583f0cd updating scaffolding and css
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5038 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-10 16:19:23 +00:00
mariano.iglesias
2131b074f6 Correcting call to __value and using dot notation in button()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5037 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-09 02:09:56 +00:00
nate
ca92008260 Updating help text on ACL script
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5036 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-08 15:24:00 +00:00
dho
7f32528dfa Applying patch from ticket #2540
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5035 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-08 11:38:41 +00:00
dho
e46be32f43 Removing bake() function and implementation of help()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5034 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-07 15:30:06 +00:00
dho
d0961d5871 Fixing undefined variable error
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5033 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-06 15:39:01 +00:00
phpnut
6295402bc3 Adding fix for #2530, adds support for Oracle to acl cli
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5032 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-06 03:32:06 +00:00
phpnut
44f611cba7 Fixing paths erros in new bash and CLI scripts.
Updated missing files and directories in skel.
Corrected paths for app custom scaffold templates

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5031 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-06 03:12:23 +00:00
phpnut
c803acea56 Adding empty file to all empty directories
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5030 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-06 03:09:27 +00:00
phpnut
aecb9e63f0 Copying missing directories to skel/views/layouts
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5029 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-06 02:50:02 +00:00
phpnut
32cc12553e Copying i18n.sql to skel directory
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5028 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-06 02:39:44 +00:00
nate
360690ed7f Adding sanity checking / warning messages for data returned from Model::loadInfo() (thanks phishy)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5027 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-05 17:36:30 +00:00
phpnut
8a3914f8df Reverting last commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5026 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-05 06:25:11 +00:00
phpnut
d6e6249f05 Renaming file to see if executable bit will remain
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5025 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-05 06:24:17 +00:00
phpnut
20baea33dc Test commit to see if executable bit is removed
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5024 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-05 06:21:34 +00:00
phpnut
e4da27674a Correcting property settings on file
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5022 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-05 06:14:58 +00:00
phpnut
883d8a963c Correcting line endings on bash script.
Starting to correct paths to new console directory.
Replaced SCRIPTS define with CONSOLE_LIBS

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5020 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-05 06:00:38 +00:00
mariano.iglesias
22adcb07a1 Adding possibility to specify if option values should be escaped, and adding tests for it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5019 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-05 00:34:56 +00:00
mariano.iglesias
d4bd5e5dbc Removing wrong delete call
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5018 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-05 00:18:08 +00:00
phpnut
476d621309 Moving dispatch.php to console/cake.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5017 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 21:46:55 +00:00
gwoo
694a1f30dc updating acl console script
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5016 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 20:12:08 +00:00
phpnut
900d180ec9 Restructuring console directory
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5015 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 20:09:34 +00:00
phpnut
b32d55e28d Renaming scripts directory to better explain what it is for
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5013 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 20:05:34 +00:00
phpnut
9b7206e14d Removing the _task from file names
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5012 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 19:53:46 +00:00
gwoo
15609e0fbf updating scripts and skel homepage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5011 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 19:32:05 +00:00
phpnut
b42e908656 Adding patch from #2528, fixes validation passing when even when allowEmpty === false
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5010 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 07:13:15 +00:00
gwoo
9e6677030b converted bake script to use console. refactored some other script code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5009 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 04:37:25 +00:00
gwoo
c9dcd61801 adding commands to scripts, similar to controller actions, will call main action if it exists, cleaning up some other stuff
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5006 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 03:49:53 +00:00
gwoo
486856f347 fixing typo in ConsoleScript
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5005 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 02:26:55 +00:00
mariano.iglesias
37daaf6dfe Fixed folder test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5004 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 00:38:26 +00:00
mariano.iglesias
74d9a205ec Adding tests for Folder
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5003 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 00:29:33 +00:00
gwoo
326c2a900d fixed missing dispatcher in ErrorHandler, updated AclScript, added initialize method to CakeScript which should be used by subclasses as the constructor.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5002 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 00:25:04 +00:00
mariano.iglesias
383c8d36d3 Adding empty test cases for File and Folder
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5001 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 23:25:21 +00:00
gwoo
c0368b34b4 updating createFile in CakeScript, adding mode to Folder construct in File class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5000 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 23:22:02 +00:00
gwoo
f467a07c34 changing reference to createFile in acl.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4999 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 22:58:30 +00:00
gwoo
d68228b704 updating console scripts, added script path searching, for /vendors and /app/vendors, class names must be like "AclScript" in /scripts/acl.php, all scripts now extend CakeScript
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4998 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 22:40:22 +00:00
phpnut
73f22d074b Renaming file to cake_script.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4997 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 21:16:44 +00:00
gwoo
a335a68aea updating console_script
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4996 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 21:14:46 +00:00
phpnut
0bdb6d7e1d Adding fix for #2522, fixes errors when primary key is not auto increment and the primary key is set in the data to be saved.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4995 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 12:08:28 +00:00
phpnut
137fea94c6 Cleaning up line endings
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4994 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 04:35:25 +00:00
gwoo
3700c963b5 updating default homepage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4993 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 00:44:02 +00:00
nate
3dc3d7b329 Updating ACL script for new Console classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4992 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 21:19:22 +00:00
phpnut
3687a0a5d0 Adding fix for #2512, fixes translation behavior count queries
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4991 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 18:50:16 +00:00
nate
5693559919 Adding newlines to ConsoleScript::hr()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4990 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 18:41:55 +00:00
phpnut
b5e3a55e03 Adding tests for #2520
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4989 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 18:37:28 +00:00
dho
9ac249631b Renaming file extensions of scaffolding templates to ctp
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4988 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 13:38:57 +00:00
dho
9b18367fcc Fixing problem with submit options in FormHelper::end() (ticket #2516)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4987 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 12:56:51 +00:00
phpnut
90e05ed48e Merging fixes into the trunk:
Revision: [4985]
 * Adding fix to allow multiple forms when using SecurityComponent

Revision: [4984]
 * Fixing undefined notice after removing RequestHandler::disableStartup = false; in [4981]


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4986 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 09:18:06 +00:00
phpnut
7fce78e73f Adding fix to allow multiple forms when using SecurityComponent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4985 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 09:11:42 +00:00
phpnut
c3370e42f6 Fixing undefined notice after removing RequestHandler::disableStartup = false; in [4981]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4984 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 09:04:52 +00:00
phpnut
34eb76b0ff Merging fixes and enhancement into the trunk:
NOTICE ALL DEPRECATED METHODS ARE REMOVED FROM THE CORE AS OF THIS REVISION!

Revision: [4981]
 * Removing deprecated code and files

/basics.php
 * normalizeList() Deprecated: see Set::normalize
 * countdim() see Set::countDim

libs/controller/components/request_handler.php
 * RequestHandler::disableStartup = false; see RequestHandler::$enabled
 * RequestHandlerComponent::setView() see RequestHandlerComponent::renderAs()
 * RequestHandlerComponent::setAjax() see RequestHandlerComponent::renderAs()

libs/controller/components/session.php
 * SessionComponent::flash() use $session->flash('key'); in your views

libs/controller/controller.php
 * Controller::_setTitle() see Controller::set()

libs/model/datasources/dbo_source.php
 * DboSource::fetchArray() see DboSource::fetchRow()
 * DboSource::one() see DboSource::fetchRow()

libs/model/db_acl.php
 * DB_ACL::getAco()  see AclComponent::$Aco::node()
 * DB_ACL::getAro() see AclComponent::$Aro::node()

libs/neat_array.php
 * Class is not longer available use libs/set.php Set class

libs/sanitize.php
 * Sanitize::sql() see Sanitize::escape()
 * Sanitize::cleanArray() see Sanitize::clean()
 * Sanitize::cleanArrayR() see Sanitize::clean()
 * Sanitize::cleanValue() see Sanitize::clean()

libs/view/helper.php
 * Helper::parseHtmlOptions() see HtmlHelper::_parseAttributes()

libs/view/helpers/form.php
 * define('TAG_DIV', '<div class="%s">%s</div>');
 * define('TAG_P_CLASS', '<p class="%s">%s</p>');
 * define('TAG_LABEL', '<label for="%s">%s</label>');
 * define('TAG_FIELDSET', '<fieldset><legend>%s</legend>%s</label>');
 * FormHelper::labelTag() see FormHelper::label()
 * FormHelper::divTag() see HtmlHelper::div()
 * FormHelper::pTag() see HtmlHelper::para
 * FormHelper::generateInputDiv() see FormHelper::input()
 * FormHelper::generateCheckboxDiv() see FormHelper::input()
 * FormHelper::generateDate() see FormHelper::input()
 * FormHelper::generateTime() see FormHelper::input()
 * FormHelper::generateDateTime() see FormHelper::input()
 * FormHelper::generateAreaDiv() see FormHelper::input()
 * FormHelper::generateSelectDiv() see FormHelper::input()
 * FormHelper::generateSubmitDiv() see FormHelper::input()
 * FormHelper::generateFields() see FormHelper::input()

libs/view/helpers/html.php
 * HtmlHelper::file() see FormHelper::file()
 * HtmlHelper::submit() see FormHelper::submit()
 * HtmlHelper::selectTag() see FormHelper::select()
 * HtmlHelper::formTag() see FormHelper::create()
 * HtmlHelper::linkEmail() see HtmlHelper::link()
 * HtmlHelper::dayOptionTag() see FormHelper::day()
 * HtmlHelper::yearOptionTag() see FormHelper::year()
 * HtmlHelper::monthOptionTag() see FormHelper::month()
 * HtmlHelper::hourOptionTag() see FormHelper::hour()
 * HtmlHelper::minuteOptionTag() see FormHelper::minute()
 * HtmlHelper::meridianOptionTag() see FormHelper::meridian()
 * HtmlHelper::dateTimeOptionTag() see FormHelper::dateTime()

libs/view/helpers/javascript.php
 * JavascriptHelper::linkOut() see JavascriptHelper::link()

libs/view/view.php
 * View::setLayout() use $this->layout in your view

Revision: [4980]
Adding option to send extra parameters to a custom validation and more tests for validation

Revision: [4978]
 * Adding ability to disable specific form data fields from being added to the validation key.
 * Example of using this would be javascript that changes hidden fields, adding additional fields added using javascript, etc.
 * This is set in a Controller::beforeFilter().
Example usage:
{{{
$this->Security->disabledFields = array('fieldname', 'additional fields');
$this->Security->disabledFields = array('Model.fieldname', 'OtherModel.fieldname');
}}}

Revision: [4977]
 * Setting replyTo and return headers only when defined

Revision: [4976]
 * Adding fix for forms that pass an empty value for a hidden field

Revision: [4973]
 * Changing where the from token holding the fields from the form is created

Revision: [4972]
 * Refactoring SecurityComponent

Revision: [4971]
 * Fixing typo

Revision: [4970]
 * Adding additional tests for validation.
 * Added fix to model to pass the new tests

Revision: [4969]
 * Adding hidden field values to hash. This will prevent altering of hidden fields in a form when using the FormHelper and adding the var $components = array('Security'); to a controller or the AppController to use by all child controllers

Revision: [4968]
 * Adding form security enhancements.
 * Forcing checking of Session form token if security component is used.
 * Enhancement will not allow a form to be submitted if the fields in the form created with the FormHelper do not match the fields in the submitted form.

Revision: [4967]
 * Adding fix for failing model validation tests

Revision: [4966]
 * Restoring commented tests

Revision: [4965]
 * Adding test to evaluate emptiness in validation

Revision: [4964]
 * Correcting subpackage tag

Revision: [4963]
 * Removing acl related directories from components tests

Revision: [4962]
 * moving tests

Revision: [4961]
 * Fixing paths to correctly load acl models.
 * Updating test for acl

Revision: [4960]
 * Moving all acl related models to model/db_acl.php.
 * Removing components/models directories
 * Changing the ACL_FILENAME setting in core.php

Revision: [4959]
 * Moving AclBase class to the acl.php file.
 * Removing components/iniacl directory.
 * Removing acl_base.php file.

Revision: [4958]
 * Restructuring locations of acl related classes

Revision: [4957]
 * Adding fix for #2510, Use shorter names for attached files in EmailComponent

Revision: [4956]
 * Adding fix for #2505

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4983 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 08:36:06 +00:00
phpnut
4bac0a063b Removing deprecated code and files
/basics.php
 * normalizeList() Deprecated: see Set::normalize
 * countdim() see Set::countDim

libs/controller/components/request_handler.php
 * RequestHandler::disableStartup = false; see RequestHandler::$enabled
 * RequestHandlerComponent::setView() see RequestHandlerComponent::renderAs()
 * RequestHandlerComponent::setAjax() see RequestHandlerComponent::renderAs()

libs/controller/components/session.php
 * SessionComponent::flash() use $session->flash('key'); in your views

libs/controller/controller.php
 * Controller::_setTitle() see Controller::set()

libs/model/datasources/dbo_source.php
 * DboSource::fetchArray() see DboSource::fetchRow()
 * DboSource::one() see DboSource::fetchRow()

libs/model/db_acl.php
 * DB_ACL::getAco()  see AclComponent::$Aco::node()
 * DB_ACL::getAro() see AclComponent::$Aro::node()

libs/neat_array.php
 * Class is not longer available use libs/set.php Set class

libs/sanitize.php
 * Sanitize::sql() see Sanitize::escape()
 * Sanitize::cleanArray() see Sanitize::clean()
 * Sanitize::cleanArrayR() see Sanitize::clean()
 * Sanitize::cleanValue() see Sanitize::clean()

libs/view/helper.php
 * Helper::parseHtmlOptions() see HtmlHelper::_parseAttributes()

libs/view/helpers/form.php
 * define('TAG_DIV', '<div class="%s">%s</div>');
 * define('TAG_P_CLASS', '<p class="%s">%s</p>');
 * define('TAG_LABEL', '<label for="%s">%s</label>');
 * define('TAG_FIELDSET', '<fieldset><legend>%s</legend>%s</label>');
 * FormHelper::labelTag() see FormHelper::label()
 * FormHelper::divTag() see HtmlHelper::div()
 * FormHelper::pTag() see HtmlHelper::para
 * FormHelper::generateInputDiv() see FormHelper::input()
 * FormHelper::generateCheckboxDiv() see FormHelper::input()
 * FormHelper::generateDate() see FormHelper::input()
 * FormHelper::generateTime() see FormHelper::input()
 * FormHelper::generateDateTime() see FormHelper::input()
 * FormHelper::generateAreaDiv() see FormHelper::input()
 * FormHelper::generateSelectDiv() see FormHelper::input()
 * FormHelper::generateSubmitDiv() see FormHelper::input()
 * FormHelper::generateFields() see FormHelper::input()

libs/view/helpers/html.php
 * HtmlHelper::file() see FormHelper::file()
 * HtmlHelper::submit() see FormHelper::submit()
 * HtmlHelper::selectTag() see FormHelper::select()
 * HtmlHelper::formTag() see FormHelper::create()
 * HtmlHelper::linkEmail() see HtmlHelper::link()
 * HtmlHelper::dayOptionTag() see FormHelper::day()
 * HtmlHelper::yearOptionTag() see FormHelper::year()
 * HtmlHelper::monthOptionTag() see FormHelper::month()
 * HtmlHelper::hourOptionTag() see FormHelper::hour()
 * HtmlHelper::minuteOptionTag() see FormHelper::minute()
 * HtmlHelper::meridianOptionTag() see FormHelper::meridian()
 * HtmlHelper::dateTimeOptionTag() see FormHelper::dateTime()

libs/view/helpers/javascript.php
 * JavascriptHelper::linkOut() see JavascriptHelper::link()

libs/view/view.php
 * View::setLayout() use $this->layout in your view

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4981 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 08:07:19 +00:00
mariano.iglesias
8982d82c0d Adding option to send extra parameters to a custom validation and more tests for validation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4980 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 07:48:22 +00:00
phpnut
8be685504e Adding ability to disable specific form data fields from being added to the validation key.
Example of using this would be javascript that changes hidden fields, adding additional fields added using javascript, etc.
This is set in a Controller::beforeFilter().
Example usage:
{{{
$this->Security->disabledFields = array('fieldname', 'additional fields');
$this->Security->disabledFields = array('Model.fieldname', 'OtherModel.fieldname');
}}}

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4978 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 02:31:06 +00:00
mariano.iglesias
2940d81cb0 Setting replyTo and return headers only when defined
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4977 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 18:01:48 +00:00
phpnut
874f06a165 Adding fix for forms that pass an empty value for a hidden field
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4976 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 17:42:09 +00:00
phpnut
7982208113 Reverting changes in last commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4975 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 15:17:27 +00:00
nate
154e3ccbb1 Refactoring FormHelper token generation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4974 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 15:03:35 +00:00
phpnut
9c0d0216bc Changing where the from token holding the fields from the form is created
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4973 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 13:35:33 +00:00
phpnut
29511659a2 Refactoring SecurityComponent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4972 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 13:09:35 +00:00
phpnut
3f86d27fd7 Fixing typo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4971 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 10:36:27 +00:00
phpnut
5cd13cff26 Adding additional tests for validation.
Added fix to model to pass the new tests

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4970 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 10:30:36 +00:00
phpnut
d1701327f8 Adding hidden field values to hash. This will prevent altering of hidden fields in a form when using the FormHelper and adding the var $components = array('Security'); to a controller or the AppController to use by all child controllers
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4969 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 10:13:01 +00:00
phpnut
57023720e6 Adding form security enhancements.
Forcing checking of Session form token if security component is used.
Enhancement will not allow a form to be submitted if the fields in the form created with the FormHelper do not match the fields in the submitted form.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4968 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 08:56:02 +00:00
phpnut
767853afae Adding fix for failing model validation tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4967 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 03:52:28 +00:00
mariano.iglesias
5317c80429 Restoring commented tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4966 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 03:04:44 +00:00
mariano.iglesias
d1687bbc06 Adding test to evaluate emptiness in validation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4965 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 03:03:53 +00:00
phpnut
f108267541 Correcting subpackage tag
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4964 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 02:44:00 +00:00
phpnut
d79f55c240 moving tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4962 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 02:40:36 +00:00
phpnut
8f929c6ff8 Fixing paths to correctly load acl models.
Updating test for acl

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4961 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 02:30:26 +00:00
phpnut
166132ca10 Moving all acl related models to model/db_acl.php.
Removing components/models directories
Changing the ACL_FILENAME setting in core.php

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4960 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 01:49:51 +00:00
phpnut
7111d292fd Moving AclBase class to the acl.php file.
Removing components/iniacl directory.
Removing acl_base.php file.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4959 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 01:23:21 +00:00
phpnut
8780af05a3 Restructuring locations of acl related classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4958 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 01:16:27 +00:00
phpnut
6d439f0f44 Adding fix for #2510, Use shorter names for attached files in EmailComponent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4957 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 00:44:19 +00:00
phpnut
0fc3cd00d3 Adding fix for #2505
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4956 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 00:19:42 +00:00
phpnut
a0bc69adb8 Merging fixes into the trunk:
Revision: [4952]
Added variation for a field parsing test

Revision: [4951]
Adding test for field parsing

Revision: [4950]
Adding tests for #2506

Revision: [4949]
Fixing overriding of default messages

Revision: [4948]
Adding overriding error messages when multiple rules

Revision: [4947]
Adding Xcache support http://trac.lighttpd.net/xcache/

Revision: [4946]
Adding fix for failing ajax tests

Revision: [4945]
Adding fix when mysql_connect is set as a connection in the database config and persistent key is not set in the config, the default for persistent is true and this would override the settings in the database config

Revision: [4944]
Adding a check to prevent if $test is not defined in DATABASE_CONFIG

Revision: [4943]
Fixed tests for PHP4

Revision: [4942]
Fixing assigned by reference on php 4

Revision: [4941]
Fixing assigned by reference on php 4, removing reference in Cache::engine()

Revision: [4940]
Making changes to cache classes and rearranging code to use new cache

Revision: [4939]
Adding return false when Memcache is set as the cache engine and the memcache extension is not installed.

Revision: [4938]
Changing settings used for new caching in core.php

Revision: [4937]
Renaming files _engine was redundant 

Revision: [4936]
Refactoring new cache classes

Revision: [4935]
Fixing Model::invalidFields to account for '0' in empty checks

Revision: [4934]
Changing 'allowEmpty' for model validation, adding 'required' and enabling multiple rules per field

Revision: [4933]
Adding initial implementation of extended caching capabilities

Revision: [4932]
Adding fix for Controller::modelClass; name when var $uses; is not the same as the Controllers singular name.
This is now set to the first value of the key $uses[0] if multiple models are added to var $uses;

Revision: [4931]
Adding fix for #2505, fixes Recursive delete in self joined models

Revision: [4929]
Fixing bug with first level validation not showing

Revision: [4928]
fixing theme view layout and element paths #2388

Revision: [4927]
Adding fix for #2452 (patch from #2476).
Added tests for ticket #2452

Revision: [4926]
Added fix for #2453, fixes HtmlHelper link escape title as string

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4955 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 13:37:19 +00:00
mariano.iglesias
e2d9935a26 Added variation for a field parsing test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4952 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 13:27:41 +00:00
mariano.iglesias
9451c58377 Adding test for field parsing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4951 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 13:24:13 +00:00
mariano.iglesias
01ce8392a4 Adding tests for #2506
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4950 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 13:03:13 +00:00
phpnut
2dd02aafba Fixing overriding of default messages
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4949 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 12:18:09 +00:00
phpnut
30a5f0384e Adding overriding error messages when multiple rules
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4948 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 12:10:57 +00:00
phpnut
d029a776b7 Adding Xcache support http://trac.lighttpd.net/xcache/
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4947 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 11:31:35 +00:00
phpnut
6a5f623240 Adding fix for failing ajax tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4946 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 11:12:11 +00:00
phpnut
5b70a957bb Adding fix when mysql_connect is set as a connection in the database config and persistent key is not set in the config, the default for persistent is true and this would override the settings in the database config
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4945 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 10:56:22 +00:00
mariano.iglesias
860c8d3ddc Adding a check to prevent if $test is not defined in DATABASE_CONFIG
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4944 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 10:27:58 +00:00
mariano.iglesias
c61e30e6f2 Fixed tests for PHP4
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4943 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 09:52:37 +00:00
phpnut
fbb102445b Fixing assigned by reference on php 4
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4942 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 09:42:39 +00:00
phpnut
5d4e0e6a62 Fixing assigned by reference on php 4, removing reference in Cache::engine()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4941 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 09:32:51 +00:00
phpnut
237504541e Making changes to cache classes and rearranging code to use new cache
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4940 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 09:12:49 +00:00
phpnut
b6fb4d80d0 Adding return false when Memcache is set as the cache engine and the memcache extension is not installed.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4939 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 07:52:17 +00:00
phpnut
18f7ecd725 Renaming files _engine was redundant
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4937 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 07:44:29 +00:00
phpnut
bca9595101 Refactoring new cache classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4936 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 07:38:47 +00:00
nate
fad2dc55ad Fixing Model::invalidFields to account for '0' in empty checks
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4935 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 06:26:59 +00:00
nate
d3c3d34dce Changing 'allowEmpty' for model validation, adding 'required' and enabling multiple rules per field
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4934 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 06:24:33 +00:00
phpnut
c62c550e3f Adding initial implementation of extended caching capabilities
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4933 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 06:01:54 +00:00
phpnut
5c2097f7d3 Adding fix for Controller::modelClass; name when var $uses; is not the same as the Controllers singular name.
This is now set to the first value of the key $uses[0] if multiple models are added to var $uses;

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4932 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 03:43:48 +00:00
phpnut
d1162169ba Adding fix for #2505, fixes Recursive delete in self joined models
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4931 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 02:46:51 +00:00
phpnut
d1e2b89c8b Fixing bug with first level validation not showing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4929 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 20:51:59 +00:00
gwoo
3bca724bc3 fixing theme view layout and element paths #2388
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4928 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 17:51:38 +00:00
phpnut
d861587960 Adding fix for #2452 (patch from #2476).
Added tests for ticket #2452

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4927 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 11:10:11 +00:00
phpnut
2baa585437 Added fix for #2453, fixes HtmlHelper link escape title as string
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4926 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 10:25:58 +00:00
phpnut
2c4f362990 Merging fixes into the trunk:
Revision: [4923]
Fixing last commit [4922]

Revision: [4922]
Removing fields() method from DboDbo2 (Ticket #2444)

Revision: [4921]
Adding fix for #2478 corrects issue on php 4 

Revision: [4919]
Adding fix for #2435. Fixes issues with custom inflection rules not being used before the default rules

Revision: [4916]
Adding fix for #2416 fixes Invalid query when using boolean conditions in PostgreSQL

Revision: [4915]
Added fix for #2450

Revision: [4914]
Adding fix for #2500 fixes adding of table.id when not using associated models and only wanting specific fields returned

Revision: [4913]
Adding fixes for test added in [4911] and [4912]
Fixed #2414 fixes findBy doesn't escape WHERE condition

Revision: [4912]
Adding more tests for #2414

Revision: [4911]
Adding tests for #2414

Revision: [4910]
Adding fix for #2419 fixes issue with long lines in email messages breaking links

Revision: [4909]
Adding fix for #2466 fixes missed Router::__mapped reinit in Router::url()

Revision: [4908]
Adding fix for #2428 fixes View::renderElement() behavior with multiple view paths

Revision: [4907]
Adding empty files to all tmp/* directories 

Revision: [4906]
Fixing label tests

Revision: [4905]
Adding additional fix for #2481

Revision: [4904]
Adding fix for #2481 fixes Form::label() $tagName does not run through domId()

Revision: [4903]
Adding enhancement from #2483.adds scaffold index view field's label

Revision: [4902]
Adding tests trying to replicate #2451 and more variations of fake threaded self join

Revision: [4901]
Adding fix for #2491 fixes bad scaffold templates paths

Revision: [4900]
Adding fix for #2488 fixes Set::extract failed on assoc array if key starts with numeric

Revision: [4899]
Adding more tests for Set::extract()

Revision: [4898]
Fixing test for #2488

Revision: [4897]
Adding test for #2488

Revision: [4896]
Adding enhancement from #2502 replacing app with APP_DIR 

Revision: [4895]
Adding fix for #2371, fixes HtmlHelper submit() method doesn't allow HTML entities in caption

Revision: [4894]
Applying fix from ticket #2485, adding test for it

Revision: [4893]
Applying patch from ticket #2496, adding test for it

Revision: [4892]
Adding test for #2494

Revision: [4891]
Adding tests for #2371

Revision: [4890]
Removing $fieldset = null; in FormHelper::inputs()

Revision: [4889]
Adding fix for #2473
Fixed undefined variable notice in Form::inputs()

Revision: [4888]
Fixing tests so they expect validation errors of all available models to be defined in Form helper

Revision: [4887]
Adding fixes from phishy.
Added fixed for #2492

Revision: [4885]
Fixing conflict of class names between tests

Revision: [4884]
Removing unneeded lines

Revision: [4883]
Adding test for inner model validation, including a two level test that fails

Revision: [4882]
Updating db_acl.sql in templates folder

Revision: [4881]
Adding patch and test for ticket #2369

Revision: [4880]
Adding initial implementation of I18n database translation support

Revision: [4879]
Fixing error when using AuthComponent and DEBUG < 1

Revision: [4878]
Case-insensitive matching when using array of phrases in TextHelper::highlight

Revision: [4877]
Fixing display of core error messages

Revision: [4876]
Changed name from requestAction() to testAction()

Revision: [4875]
Fixing small issues

Revision: [4874]
Added ability to auto-fixturize models when testing controllers

Revision: [4873]
Using reference to controller

Revision: [4872]
Added option to get the view vars after running action

Revision: [4870]
Fixed issue in CakeTestCase::requestAction() when wanting to get resulting HTML

Revision: [4869]
Adding URL fragment (hash) support in Router::url() (Ticket #2432)

Revision: [4868]
Adding undefined variable fix for PaginatorHelper::sortDir() (Ticket #2440)

Revision: [4867]
Moving Router::__filter() to Set::filter()

Revision: [4866]
Removing invalid character

Revision: [4865]
Adding fix for <> condition in DboSource (Ticket #2101)

Revision: [4864]
Removing indents from comments

Revision: [4863]
Added new callbacks and ability to execute CakePHP URLs from CakeTestCase

Revision: [4862]
working on form helper, added a submit button to form end if you pass true, added fieldset options to inputs

Revision: [4861]
Adding fix for misquoted SQL functions (Ticket #2199)

Revision: [4860]
Correcting svn properties on files

Revision: [4859]
Adding field map to convert aliased column names in MSSQL queries

Revision: [4858]
Adding auto-detection check for IIS (manually defining SERVER_IIS is no longer required), and fixing setUri for rewritten IIS URLs.

Revision: [4857]
Fixing problem with highlighting multiple phrases (ticket #2418)

Revision: [4856]
Applying patch from ticket #2417

Revision: [4855]
Removed unneeded variable

Revision: [4854]
Added ability to import table definition and/or records from either an existing Model, or an existing table

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4925 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 09:46:55 +00:00
nate
7f4201280e Fixing last commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4923 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 09:14:09 +00:00
nate
f28e6d5b77 Removing fields() method from DboDbo2 (Ticket #2444)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4922 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 09:11:35 +00:00
phpnut
815b159ab3 Adding fix for #2478 corrects issue on php 4
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4921 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 08:56:10 +00:00
phpnut
027f7838b5 Adding fix for #2435. Fixes issues with custom inflection rules not being used before the default rules
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4919 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 08:41:46 +00:00
phpnut
87cfb1766d Adding fix for #2416 fixes Invalid query when using boolean conditions in PostgreSQL
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4916 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 07:02:25 +00:00
phpnut
1fa4e18487 Added fix for #2450
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4915 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 06:11:32 +00:00
phpnut
f1c03fe608 Adding fix for #2500 fixes adding of table.id when not using associated models and only wanting specific fields returned
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4914 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 06:06:15 +00:00
phpnut
5757d6b7e9 Adding fixes for test added in [4911] and [4912]
Fixed #2414 fixes findBy doesn't escape WHERE condition

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4913 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 05:37:39 +00:00
mariano.iglesias
6978359505 Adding more tests for #2414
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4912 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 04:24:47 +00:00
mariano.iglesias
5903e2226c Adding tests for #2414
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4911 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 04:18:41 +00:00
phpnut
91d4b05e9b Adding fix for #2419 fixes issue with long lines in email messages breaking links
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4910 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 04:16:43 +00:00
phpnut
0ddac86f58 Adding fix for #2466 fixes missed Router::__mapped reinit in Router::url()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4909 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 03:46:58 +00:00
phpnut
7cdb495068 Adding fix for #2428 fixes View::renderElement() behavior with multiple view paths
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4908 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 03:33:37 +00:00
mariano.iglesias
70b9de6903 Fixing label tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4906 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 03:10:44 +00:00
phpnut
aee7405863 Adding additional fix for #2481
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4905 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 03:05:08 +00:00
phpnut
e91a15e4e2 Adding fix for #2481 fixes Form::label() $tagName does not run through domId()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4904 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 02:58:01 +00:00
phpnut
527a2e6bcd Adding enhancement from #2483.adds scaffold index view field's label
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4903 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 02:52:17 +00:00
mariano.iglesias
80e40d6910 Adding tests trying to replicate #2451 and more variations of fake threaded self join
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4902 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 02:25:57 +00:00
phpnut
74ca09d759 Adding fix for #2491 fixes bad scaffold templates paths
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4901 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 02:03:43 +00:00
phpnut
698b221943 Adding fix for #2488 fixes Set::extract failed on assoc array if key starts with numeric
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4900 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 01:47:26 +00:00
mariano.iglesias
3f3f86d62a Adding more tests for Set::extract()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4899 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 01:44:03 +00:00
mariano.iglesias
1a693ccc53 Fixing test for #2488
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4898 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 01:31:50 +00:00
mariano.iglesias
0bd1a41329 Adding test for #2488
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4897 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 00:56:21 +00:00
phpnut
dbf0181e26 Adding enhancement from #2502 replacing app with APP_DIR
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4896 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 00:19:29 +00:00
phpnut
c91965dc89 Adding fix for #2371, fixes HtmlHelper submit() method doesn't allow HTML entities in caption
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4895 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-28 23:52:19 +00:00
dho
efd8df1771 Applying fix from ticket #2485, adding test for it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4894 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-28 09:20:35 +00:00
dho
da0dacb013 Applying patch from ticket #2496, adding test for it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4893 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-28 08:57:34 +00:00
mariano.iglesias
5692e7f344 Adding test for #2494
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4892 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-28 07:48:31 +00:00
mariano.iglesias
abb287180d Adding tests for #2371
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4891 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-28 07:42:54 +00:00
phpnut
9b8f81cc82 Removing $fieldset = null; in FormHelper::inputs()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4890 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-27 20:19:27 +00:00
phpnut
30498981a7 Adding fix for #2473
Fixed undefined variable notice in Form::inputs()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4889 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-27 20:16:38 +00:00
mariano.iglesias
99b0ee21a8 Fixing tests so they expect validation errors of all available models to be defined in Form helper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4888 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-27 07:44:47 +00:00
phpnut
1d64691014 Adding fixes from phishy.
Added fixed for #2492

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4887 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-27 06:43:40 +00:00
mariano.iglesias
45625d65a9 Fixing conflict of class names between tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4885 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-26 12:02:51 +00:00
mariano.iglesias
6d058861e7 Removing unneeded lines
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4884 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-26 11:54:36 +00:00
mariano.iglesias
52f0548782 Adding test for inner model validation, including a two level test that fails
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4883 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-26 11:52:56 +00:00
dho
8a579c6585 Updating db_acl.sql in templates folder
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4882 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-26 09:18:35 +00:00
dho
c529d363a8 Adding patch and test for ticket #2369
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4881 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-25 07:28:20 +00:00
phpnut
0d69e3a085 Adding initial implementation of I18n database translation support
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4880 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-25 00:24:19 +00:00
phpnut
575dafe60a Fixing error when using AuthComponent and DEBUG < 1
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4879 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-24 00:26:10 +00:00
dho
35c7807cc3 Case-insensitive matching when using array of phrases in TextHelper::highlight
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4878 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-21 16:55:09 +00:00
nate
bb8c52dac0 Fixing display of core error messages
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4877 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-18 16:39:11 +00:00
mariano.iglesias
4b7e496446 Changed name from requestAction() to testAction()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4876 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-18 00:34:38 +00:00
mariano.iglesias
c290e10dd3 Fixing small issues
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4875 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-18 00:27:56 +00:00
mariano.iglesias
11d588ff15 Added ability to auto-fixturize models when testing controllers
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4874 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 21:20:38 +00:00
mariano.iglesias
29cadf7460 Using reference to controller
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4873 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 09:11:58 +00:00
mariano.iglesias
79e9050136 Added option to get the view vars after running action
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4872 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 09:09:44 +00:00
mariano.iglesias
047b331c5b Improved code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4871 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 08:45:06 +00:00
mariano.iglesias
88da8d5b44 Fixed issue in CakeTestCase::requestAction() when wanting to get resulting HTML
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4870 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 08:41:52 +00:00
nate
3ba273b16d Adding URL fragment (hash) support in Router::url() (Ticket #2432)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4869 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 07:51:01 +00:00
nate
11c5e916b8 Adding undefined variable fix for PaginatorHelper::sortDir() (Ticket #2440)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4868 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 07:03:20 +00:00
nate
e5b0f2e3fa Moving Router::__filter() to Set::filter()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4867 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 07:00:26 +00:00
dho
9a865176aa Removing invalid character
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4866 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 06:48:16 +00:00
nate
5461eec22d Adding fix for <> condition in DboSource (Ticket #2101)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4865 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 05:17:06 +00:00
mariano.iglesias
a152849bde Removing indents from comments
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4864 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 04:30:23 +00:00
mariano.iglesias
a053a1aa7c Added new callbacks and ability to execute CakePHP URLs from CakeTestCase
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4863 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 04:27:43 +00:00
gwoo
f4c9be8be2 working on form helper, added a submit button to form end if you pass true, added fieldset options to inputs
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4862 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 02:06:15 +00:00
nate
86d32e4313 Adding fix for misquoted SQL functions (Ticket #2199)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4861 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-16 21:49:28 +00:00
phpnut
97aa991f2d Correcting svn properties on files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4860 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-15 07:19:31 +00:00
nate
c9b2da1380 Adding field map to convert aliased column names in MSSQL queries
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4859 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-14 23:34:08 +00:00
nate
ef79f256a7 Adding auto-detection check for IIS (manually defining SERVER_IIS is no longer required), and fixing setUri for rewritten IIS URLs.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4858 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-14 21:35:48 +00:00
dho
ee403daf5d Fixing problem with highlighting multiple phrases (ticket #2418)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4857 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-13 14:27:59 +00:00
dho
c9d4fa6451 Applying patch from ticket #2417
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4856 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-13 11:56:03 +00:00
mariano.iglesias
74653e5fac Removed unneeded variable
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4855 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-13 05:23:29 +00:00
mariano.iglesias
0eb008fa58 Added ability to import table definition and/or records from either an existing Model, or an existing table
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4854 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-13 05:17:48 +00:00
phpnut
0f2e3a4a80 Merging fixes into the trunk:
Revision: [4851]
Adding patch from Ticket #2374

Revision: [4850]
Correcting [4849], would attempt to load non existent model is var $uses was not set

Revision: [4849]
Adding fix for Ticket #2349

Revision: [4848]
Adding fix for Ticket #2392
Added tests for this fix.

Revision: [4847]
Fixing SQL error in AuthComponent::identify() when username is empty (Ticket #2402)

Revision: [4846]
Fixing (moving) session string warning (Ticket #2377) and adding automatic logging code

Revision: [4845]
Adding fix for Ticket #2376

Revision: [4843]
Added tests for issue #2391

Revision: [4842]
Added tests for issue #2391

Revision: [4841]
Adding fix for Ticket #2380

Revision: [4840]
Adding fix for Ticket #2391

Revision: [4839]
Adding fix for Ticket #2387
Fixed issue in view with $session->valid() always returning false.

Revision: [4838]
Fixing JavascriptHelper::object() bug with numeric indexes, as reported on the mailing list

Revision: [4837]
Throwing Missing Model error for missing associated classes, per gwoo

Revision: [4835]
Adding fix for Ticket #2326

Revision: [4834]
Removing inline comments and fixing error in parseURI; also fixes Ticket #2382

Revision: [4833]
Adding user check fix for AuthComponent::isAuthorized(), and removing comments from Model test (Ticket #2381)

Revision: [4832]
Fixed typo in function name strpos replaces strrpos

Revision: [4831]
Refactoring association joins, Fixes the issue with adding the Model.id if it is not already added.
Adding fix for string based fields.

Revision: [4830]
Removing name() method from DBO drivers (Ticket #2372)

Revision: [4829]
Adding tests to force foreignKey fields in hasMany

Revision: [4828]
Adding tests for automatic addition of ids in hasMany

Revision: [4827]
Adding fix for undefined index

Revision: [4826]
Adding first implementation of hasMany associations using one select statement.

Revision: [4825]
Removing some duplicate code

Revision: [4824]
Initial work on using one select statement for hasMany associations

Revision: [4823]
Adding enhancement from Ticket #2366

Revision: [4822]
Adding patch from Ticket #2368

Revision: [4821]
Moving fixtures directory in the application skeleton

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4853 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-12 08:59:09 +00:00
phpnut
94704a2518 Adding patch from Ticket #2374
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4851 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-12 07:46:29 +00:00
phpnut
8170b1f89f Correcting [4849], would attempt to load non existent model is var $uses was not set
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4850 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-12 07:38:25 +00:00
phpnut
e6f519a0a8 Adding fix for Ticket #2349
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4849 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-12 07:29:45 +00:00
phpnut
a2ba6d7715 Adding fix for Ticket #2392
Added tests for this fix.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4848 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-12 07:17:39 +00:00
nate
4e8a803e81 Fixing SQL error in AuthComponent::identify() when username is empty (Ticket #2402)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4847 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-12 02:32:16 +00:00
nate
b0307904ae Fixing (moving) session string warning (Ticket #2377) and adding automatic logging code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4846 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-12 00:34:16 +00:00
mariano.iglesias
cf2abbed03 Added tests for issue #2391
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4843 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-11 21:27:16 +00:00
mariano.iglesias
4c7febfafa Added tests for issue #2391
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4842 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-11 21:22:26 +00:00
phpnut
385e0c02ba Adding fix for Ticket #2380
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4841 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-11 21:20:10 +00:00
phpnut
b752463592 Adding fix for Ticket #2391
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4840 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-11 20:49:41 +00:00
phpnut
4f78065c14 Adding fix for Ticket #2387
Fixed issue in view with $session->valid() always returning false.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4839 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-11 20:47:17 +00:00
nate
8df2d428ff Fixing JavascriptHelper::object() bug with numeric indexes, as reported on the mailing list
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4838 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-11 18:02:10 +00:00
nate
3a828d2338 Throwing Missing Model error for missing associated classes, per gwoo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4837 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-11 18:01:24 +00:00
phpnut
f1678686a4 Adding fix for Ticket #2326
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4835 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-11 15:20:37 +00:00
nate
aed74550fb Removing inline comments and fixing error in parseURI; also fixes Ticket #2382
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4834 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-10 22:56:07 +00:00
nate
0c43266ba7 Adding user check fix for AuthComponent::isAuthorized(), and removing comments from Model test (Ticket #2381)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4833 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-10 16:48:45 +00:00
phpnut
30ea0fb69b Fixed typo in function name strpos replaces strrpos
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4832 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-09 22:41:17 +00:00
phpnut
8ed1b69b3f Refactoring association joins, Fixes the issue with adding the Model.id if it is not already added.
Adding fix for string based fields.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4831 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-09 21:30:55 +00:00
nate
d416fbe4ed Removing name() method from DBO drivers (Ticket #2372)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4830 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-09 19:54:07 +00:00
mariano.iglesias
dd956694af Adding tests to force foreignKey fields in hasMany
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4829 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-09 19:21:42 +00:00
mariano.iglesias
e9d7d60292 Adding tests for automatic addition of ids in hasMany
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4828 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-09 19:12:59 +00:00
phpnut
dcf64033ed Adding fix for undefined index
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4827 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-09 09:40:56 +00:00
phpnut
00be91c954 Adding first implementation of hasMany associations using one select statement.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4826 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-09 08:54:25 +00:00