Commit graph

171 commits

Author SHA1 Message Date
phpnut
75b1e901c0 Adding fix for #2863, When trying to load not existing helper file, loadHelper() returns true
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5403 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 17:17:44 +00:00
phpnut
dac1bd0913 Correcting code structure to standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5315 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 07:51:52 +00:00
phpnut
23dfd90b29 Correcting code structure to standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5313 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 06:15:35 +00:00
mariano.iglesias
934a2abb93 Adding documentation for CakePHP basic functions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5296 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-19 13:20:34 +00:00
phpnut
cdf9c0bc43 Correcting loading of plugin view classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5218 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-29 13:21:22 +00:00
phpnut
cbd5bc9e47 Changing Helper::_ _value(); to Helper::value();
Removed HtmlHelper::value();
Changed all references to _ _value() to value();
Started changes needed for loading custom view classes located in a plugin

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5213 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-27 19:54:36 +00:00
phpnut
f1625a8ae4 Finishing vendors function to allow loading of plugin vendors files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5209 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-27 04:10:33 +00:00
phpnut
f916745c87 Implementing lazy loading of plugin models
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5207 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-27 02:32:27 +00:00
phpnut
2f6d2d313a Moving loading of plugins controller to use loadController()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5202 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-26 23:43:35 +00:00
phpnut
459cb5c45a Starting code changes to allow dot notation for loading of all classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5197 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-26 09:50:17 +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
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
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
phpnut
b486b6f076 Adding fix for Ticket #2351
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4783 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 16:09:51 +00:00
phpnut
3af3f242f6 Adding patch from Ticket #2320
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4730 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-01 08:18:05 +00:00
nate
983c55005c Fixing URL parsing/dispatching for IIS installs without rewrite support
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4699 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-28 16:35:59 +00:00
nate
85c5f0513a Adding env('HTTP_BASE') to get base domain
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4622 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-16 14:59:40 +00:00
phpnut
1c07701223 Removing need for plugins to need a model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4485 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-09 02:38:19 +00:00
phpnut
08c412c4ca Updating test suite with correct paths.php
Changed vendor() to return true or false

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4434 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-04 02:08:17 +00:00
phpnut
a8a91e35be Correcting all headers in the files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4407 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 10:39:45 +00:00
phpnut
dfb4eefaf8 Adding fix for #2001
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4384 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-01 06:39:25 +00:00
phpnut
d1baa9db8f Adding fix for #2027
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4383 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-01 06:12:18 +00:00
phpnut
450a95f4a1 Adding fix for #1993
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4377 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-01 03:34:32 +00:00
nate
3c669d7cee Adding ternary op wrapper function to basics
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4349 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-30 16:34:22 +00:00
nate
181a22d659 Fixing return value of loadModels()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4314 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-22 08:10:43 +00:00
nate
53dca9cccc Adding schema generation support to DboMysql
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4311 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-21 22:55:58 +00:00
nate
06f83ea86d Moving normalizeList() (basics) to Set::normalize()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4307 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-20 20:50:57 +00:00
phpnut
6257689e0d changing cache() to allow writing to the tmp directory
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4299 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-17 02:41:02 +00:00
phpnut
bcd2a951e4 Adding check for existence of Core key in class.paths.php.
Change Configure::_ _writeConfig() to cache files for 10 seconds if DEBUG > 0.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4291 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-14 01:25:13 +00:00
phpnut
27e5481b5b Adding check for new dot notation that will be used to load classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4289 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-13 21:36:10 +00:00
phpnut
7ad952d5eb Adding changes to other load*() functions in basics.php to create cached paths for loaded classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4288 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-13 21:08:52 +00:00
phpnut
55e9a1eda6 Reverting changes from [4285]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4286 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-12 17:25:56 +00:00
gwoo
8eccba69ce adding a return false to cache and configure
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4285 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-12 16:37:56 +00:00
gwoo
6c528ffa00 adding check for is_writeable to cache()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4278 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-10 22:43:37 +00:00
phpnut
e64de54a51 Adding new methods to Configure class that is used to created a cached version of config files.
Adding Configure::store() method call to bootstrap.php to create a cached file for class paths.
Adding Configure::read() to load class paths into Configure instance.
Adding check in loadModel() to get the class path from Configure::read('Models'); if set, if values are not set, the correct file is found and added to the cache file for faster loading.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4274 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-09 22:32:48 +00:00
phpnut
3758445e8a "Correcting doc comments in basics.php
Changed the params order for _ _c()."

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4231 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-30 01:02:19 +00:00
phpnut
dfbc6f0706 Adding patch from Ticket #1354
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4223 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-28 05:15:21 +00:00
phpnut
762e9ed90c Adding fix for I18n when $domain is specified using any of the _ _d*() functions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4207 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 19:38:28 +00:00
phpnut
3eac55449e Adding function to basics.php to allow specifying a catalog to use for translation.
This should be used when LC_MESSAGES does not contain the translation strings.
Added doc comments to I18n and I10n classes.
Refactored I18n class

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4188 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 04:42:47 +00:00
phpnut
4f1c5ef386 Wrapping all core messages in translation function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4129 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 22:49:47 +00:00
phpnut
d23de28349 Adding doc comments to translation functions in basics.php
Refactoring I18n class to use one locale directory for an application.
Translations will be located in app/locales/[LANGUAGE]/LC_MESSAGES/[CONTROLLER].mo or [CONTROLLER].po
If not found app/locales/[LANGUAGE]/LC_MESSAGES/default.mo or default.po
All core translations will be located in cake/locales/[LANGUAGE]/LC_MESSAGES/

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4122 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 20:04:15 +00:00
nate
54a5055fa4 Adding loadControllers() fix for Ticket #1745
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4106 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-15 16:18:15 +00:00
phpnut
b8a46e14d7 Adding Folder::rmdir().
Removed empty lines from basics file

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4101 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-13 04:39:26 +00:00
nate
b51bf20390 Adding PHP5 array functions for Router to basics
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4085 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-08 08:59:35 +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
phpnut
7cc9b6e38f Adding fix for Ticket #1712
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4044 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-01 17:10:53 +00:00
phpnut
5a74812c7b Adding fix for Ticket #1661
Fixed same issue in function cache() in basics.php

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4014 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-28 22:34:28 +00:00
phpnut
99f50e78c3 Removing class_exists('Model') in loadPluginModels()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3968 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 20:39:19 +00:00
phpnut
f8274a3862 Adding fix for Ticket #1698
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3967 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 20:30:17 +00:00
phpnut
35ff9d45dc Allowing loadModel to accept null as a param.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3944 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 21:39:09 +00:00
phpnut
ac552a256e Merging fix from [3912]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3913 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 21:32:59 +00:00
phpnut
c773b64bfe Starting to refactor model loading
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3885 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-21 21:48:05 +00:00
nate
6ba7032e68 Moving strip_plugin() to Router::stripPlugin(), and enabling reverse routes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3854 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-10 17:08:31 +00:00
phpnut
4cfafba726 Fixing overload() calls in both branches
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3828 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-05 06:56:28 +00:00
phpnut
d77a19e4a4 Adding fix for loadModel() not checking for existence of model before loading
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3827 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-05 06:29:15 +00:00
nate
91ade8fe45 Enabling overload of AppHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3798 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-01 20:42:11 +00:00
phpnut
581dec2248 Applied part of patch from #1603
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3768 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-31 03:42:36 +00:00
nate
607dfac428 Enabling auto-load for AppHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3751 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-27 21:41:34 +00:00
gwoo
755e3dbae1 1.2: updated file_put_contents in basics to return number of bytes written or false
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3721 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-19 18:14:09 +00:00
phpnut
64359fe7ba Removing functions from basics.php that where added as workarounds for PHP < 4.3.
Removing legacy.php and all references to the file

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3717 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-19 00:37:29 +00:00
phpnut
ad65992ead removed bad char in my last commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3711 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 17:51:29 +00:00
phpnut
2e4101a54b Removed variable from the I18n::translate(); in basics.php __() function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3710 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 17:17:29 +00:00
nate
355ad78cc1 Adding HTTPS detection fix (Ticket #1405)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3531 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-20 19:13:57 +00:00
phpnut
2a3f651d3d Adding fix for #1402
Multiple requestActions to same plugin setting wrong view path.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3509 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-18 20:00:39 +00:00
nate
d232f47d72 Adding CGI_MODE detection and CGI-mode SCRIPT_NAME emulation to env()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3451 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-05 18:10:59 +00:00
nate
c40e3e355c Fixing class load order in vendors() and uses()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3446 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-03 06:46:43 +00:00
nate
eff03b1dea Fixing associative array issue with normalizeList()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3428 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-24 12:40:19 +00:00
nate
381ccff146 Fixing loader loops
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3388 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-08 21:17:20 +00:00
nate
f2a89197e2 Optimizing loops in uses() and vendor()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3374 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-06 22:51:30 +00:00
nate
796222dfeb Abstracting PHP4/5 overload implementation to custom base class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3324 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-30 12:24:03 +00:00
phpnut
6b8e11fe2c Adding fix in loadView().
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3311 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 04:51:29 +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
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
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
3d4d5e4388 Adding fix for Ticket #804
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3113 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 14:44:16 +00:00
phpnut
0801dce999 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3092 3807eeeb-6ff5-0310-8944-8be069107fe0 2006-06-14 19:06:14 +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
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
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
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
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
f9197dc7a5 Merging fixes and enhancements into trunk.
Revision: [2282]
Fixed caching of content when wrapped with the <cake:nocache> tags </cake:nocache>

Revision: [2281]
Fixing DBO compatibility in AclNode::_resolveID(), adding docblock and fixing code for stripslashes_deep(), and adding request detection helper methods to RequestHandler

Revision: [2280]
Added fix for empty pages being cached

Revision: [2279]
Fixed undefined index in CacheHelper::cache()

Revision: [2278]
Fixed bug in CacheHelper::__parseFile() regex pattern did not match properly

Revision: [2277]
Adding CacheHelper class.
Refactored View::_render() to use new CacheHelper.

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2283 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-13 03:48:39 +00:00
phpnut
de46dc7fdc Merging fixes and enhancements into trunk.
Revision: [2275]
Change the way the cacheAction arrays can be set.

var $cacheAction = array('action/params/' => time); Multiple params are allowed, will only cache params level and deeper (action/params/params/)
var $cacheAction = array('action/' => time); Setting to just the method without any params will cache all request to that method.
var $cacheAction = string; Will set cache time for entire class.

Both settings can be used in the Controller::method().
$this->cacheAction = array() or string;

Revision: [2274]
Changed clearCache function to allow using url like param setting for cache.

Example:
One of the following can be used.
clearCache('controller'); Will remove all cached pages that have the controller name.
clearCache('controller/action/'); Will remove all cached pages that have the controller_action name.
clearCache('controller/action/params'); Will remove all cached pages that have the controller_action_params name. Note you can have multiple params
clearCache(array('controller/action/params','controller2/action/params)); You can also use and array to set more than one value, same setting as above apply to arrays.


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2276 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-12 18:32:09 +00:00
phpnut
2862d11796 Merging fixes and enhancements into trunk.
Revision: [2270]
Refactored clearCache()

Revision: [2269]
Removed timestamp in file name.
Removed debug code in model_php5.php


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2271 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-12 09:31:36 +00:00
phpnut
54df7c300f Merging fixes and enhancements into trunk.
Revision: [2267]
Removed the 50 record limit on the Model::findAll().
Added _ between file and timestamp
Fixed error thrown when variable was not an array


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2268 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-12 08:56:11 +00:00
phpnut
7c8df25770 Merging fixes and enhancements into trunk.
Revision: [2257]
Refactored cache code in view class.
Removed adding the timestamp to the file contents, it is now
added to the file name

Revision: [2256]
Refactored cache checking code.
Time stamp is not added to file name so we check this 
instead of reading the file and finding timestamp

Revision: [2255]
Adding clearCache function to delete contents of cache

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2258 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-12 05:56:07 +00:00
phpnut
89fbf1c8bf Merging fixes and enhancements into trunk.
Changing version number to 1.x.x.x, 0.10.x.x code base had been changed to the version number 1.x.x.x, and what was planned for 1.x.x.x code has
now been moved to 2.x.x.x, and 2.x.x.x moved to 3.x.x.x. This will give us easier to track version numbers from now on.

Revision: [2248]
Merging changes from model_php5.php

Revision: [2247]
"Removing test code from view class"

Revision: [2246]
Removed cache time define from core.php.
Modified the __() function in basics.php to echo string like it will in later versions of cake with translations.
Refactored the cache checking in bootstrap.php to read the files embedded time stamp and delete or output the cached version.
Added View::cacheView() for caching pages.


Revision: [2245]
Moving column formatting from DBO to Sanitize

Revision: [2244]
Adding beforeValidate() Model callback, and allowing query data to be modified in beforeFind()

Revision: [2243]
"Adding caching changes to Controller class "

Revision: [2242]
"Added check to delete cached version if it has expired"

Revision: [2241]
Adding app/cache/views directory

Revision: [2240]
"Fixed missing variable"

Revision: [2239]
"Adding full page caching to view class."

Revision: [2238]
"Adding defines for caching"

Revision: [2237]
"Adding caching check too bootstrap.php"

Revision: [2236]
Adding ClassRegistry::removeObject from Ticket #477

Revision: [2235]
"Correcting setting in DATABASE_CONFIG class"

Revision: [2231]
Adding convenience function am(), which allows merging an infinite number of arrays merged into one

Revision: [2207]
Change Model::save() to call beforeSave() before validations

Revision: [2199]
Removing conditions method call in Model::field()

Revision: [2196]
Setting proper mime type again

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2250 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-12 00:11:40 +00:00
phpnut
2cb80a132f Merging fixes and enhancements into trunk.
Revision: [2158]
Changing vendors() to user require_once().

Revision: [2157]
Fixed missing directory separator.

Revision: [2156]
Added a few more fixes for Ticket #447

Revision: [2155]
Reverting changes in [2153]
Adding fix for Ticket #447

Revision: [2154]
Adding patch from Ticket #448


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2159 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-28 19:45:28 +00:00
phpnut
f37dfb6302 Merging fixes and enhancements into trunk.
Revision: [2133]
Fixing sub package doc tag

Revision: [2132]
Added fixes when ini_set() is disabled.                   
Problem reported here:
    http://groups.google.com/group/cake-php/browse_thread/thread/f8e537b165da733e/06888a4112345f59

Revision: [2131]
"Correcting subpackage doc block tags "

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2134 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-25 19:20:18 +00:00
phpnut
a75e08976f Merging fixes and enhancements into trunk
Revision: [2025]
A little more work on plugin to set some default routing.

Revision: [2024]
Changed DboSource::field() so the name() is not called for some field variables.

Revision: [2023]
Changes made in [2022] should only check if the $conditions is not empty.

Revision: [2022]
Changed DboSource::conditions() so it will add the "ticks" needed around the Model.field names.
The Model.field name conventions must be used for this to work.

Revision: [2021]
Adding fix for Ticket #405

Revision: [2020]
Added fix for Ticket #403

Revision: [2019]
Added patch from Ticket #404.
Fixing formatting of files.

Revision: [2018]
Fixing formatting of files 

Revision: [2017]
Fixed bad search and replace

Revision: [2016]
Fixing formatting of files 

Revision: [2015]
Replaced all 3 space indents with 4 space indents

Revision: [2014]
Updating variables to use the naming proper conventions

Revision: [2013]
Added patch from Ticket #406

Revision: [2012]
Adding fix for Ticket #407.
Fix variables that where not formatted per the coding conventions

Revision: [2011]
Adding patch from Ticket #401

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2026 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-18 23:42:21 +00:00
phpnut
9a8d5c15fe Merging fixes and enhancements into trunk
Revision: [2009]
Adding fixes for session errors posted in the google group.
Changed the header for PHP version in the model classes.
Change uses() back to require_once 

Revision: [2008]
Adding reference back to the PHP 4 model

Revision: [2007]
Merging changes from model_php5

Revision: [2006]
Fixing recursive associations, adding whitelist to Model::save

Revision: [2005]
Added fix for error in CakeSession class.
Updated home.thtml

Revision: [2004]
Rearranged  some of the defines moving the most often changed ones to the top of the script

Revision: [2003]
Moved SQL files distributed with the core to app/config/sql/
Removed app/config/routes.php.default
Fixed class_exists check in TextHelper

Revision: [2002]
adding sql directory

Revision: [2001]
Fixed error when cake distribution is installed inside of the DOCUMENT ROOT 

Revision: [2000]
Adding checks for classes that are already loaded so the require() calls will not error

Revision: [1999]
Replacing all require_once() with require()

Revision: [1998]
Moved creation of the Dispatcher object to app/webroot/index.php

Revision: [1997]
Adding session sql file

Revision: [1996]
Revision: [1995]
Fixing session db queries

Revision: [1994]
Change the require_once in bootstrap to require.
Merged changes John made to the CakeSession database methods

Revision: [1993]
Removing some constants that are not needed

Revision: [1992]
Adding fix for Ticket #400

Revision: [1991]
Fixing Ticket #348

Revision: [1990]
Fixing Tickets #397 and #399

Revision: [1989]
Fixed callbacks in JavaScript events and Ajax, fixed Controller::beforeRender so you can set view variables, and fixed Ticket #394

Revision: [1988]
Renamed the $dir param to $direction.
Added default value to the DboSource::order() $direction param.

Revision: [1987]
Adding changes back to the sessions class I reverted in [1984]

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2010 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-17 10:12:15 +00:00
phpnut
818806195f Merging fixes and enhancements into trunk
Revision: [1985]
Changed DboSource?::order() to allow passing an array in the order param

Revision: [1984]
Reverting changes from [1983]

Revision: [1983]
Merging change from [1966] and [1967]

Revision: [1982]
Adding fix for DboSource::order().
This allows setting the order in the find methods.

Revision: [1981]
cleaned up code

Revision: [1980]
Corrected the array keys in the regex I added

Revision: [1979]
Added check to DboMysql::value() that does not add quotes around a numerical value.
Refactored DboSource::conditions() adding better regex. 

Revision: [1978]
Added check for LIKE in a condition array this fixes the = being added.

Revision: [1977]
Added fix for Ticket #392

Revision: [1976]
Adding changes suggested in Ticket #381.
These have not been fully tested.

Revision: [1975]
Added fix for Ticket #391

Revision: [1974]
Added patch from Ticket #390

Revision: [1973]
Adding patch from Ticket #386

Revision: [1972]
Added patch from Ticket #385.
Changed wording of a comment.

Revision: [1971]
Added patch from Ticket #383

Revision: [1970]
Adding fix for Ticket #395

Revision: [1969]
Adding more detailed comment to path defines

Revision: [1968]
Making a few more changes to the path settings

Revision: [1965]
fixing path issue with loading PagesController

Revision: [1964]
Added model method for getting column types by field

Revision: [1963]
Corrected paths to the tmp directory.
Making a few more changes to the defines in index.php

Revision: [1962]
Moving tmp directory to app

Revision: [1961]
Starting separation of core from the application.

Revision: [1960]
Adding vendors directory to app directory

Revision: [1959]
Finished support for recursive associations.  Still needs some testing...

Revision: [1958]
Adding fix for Ticket #387, and automagic id's for form inputs

Revision: [1957]

Revision: [1956]
Adding fix for error reported in Google Group: http://groups.google.com/group/cake-php/browse_thread/thread/395593a3cea34174

Revision: [1955]
Adding fix for Controller::referer()

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1986 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-16 09:29:28 +00:00
phpnut
e51b3d4915 Merging fixes and enhancements into trunk
Revision: [1948]
Added fix for Ticket #376

Revision: [1947]
Renamed log.php to cake_log.php

Revision: [1946]
Added fix for Ticket #371;
Moved LogError to bascis.php from log.php
Renaming Log class to CakeLog to avoid conflicts with Pear Log class or any other Log class.
Added check to File class to load Folder class if it is not in memory already
Moved LOG_ERROR define to app/config/core.php

Revision: [1945]
Updated Inflector::pluralize(); and Inflector::singularize(); to use some code that is in the new Inflector class from version 1.x.x.x
Added fix for Ticket #373
Added fix for Ticket #357
Added patch from Ticket #363

Revision: [1944]
Added fix for Ticket #349 PHP 5 version

Revision: [1943]
Added fix for Ticket #349

Revision: [1942]
Adding patches from Ticket #377

Revision: [1941]
Quick URL fix for AjaxHelper::editor

Revision: [1940]
Fixing Ticket #375

Revision: [1939]
Adding fix for Ticket #369, plus slider control and Ajax In-Place editor

Revision: [1938]
diff patched applied from gwoo



git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1949 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-08 15:25:34 +00:00
phpnut
0a7a4807da Merging fixes and enhancements into trunk
Revision: [1919]
Removed debug code.


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1920 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-03 07:12:40 +00:00
phpnut
50a71fa777 Merging fixes and enhancements into trunk
Revision: [1914]
Adding prefix setting to the database config class.
Setting the value here will use the prefix for all models.


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1915 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-03 04:45:08 +00:00
phpnut
d09a48d882 Merging fixes and enhancements into trunk
Revision: [1912]
Adding more work arounds for using plugins.

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1913 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-03 03:46:27 +00:00
phpnut
36ccefa51f Merging fixes and enhancements into trunk
Revision: [1910]
Adding fix to correct paths when using plugins

Revision: [1909]
Adding a fix to load plugin AppController if AppController is not present in memory already

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1911 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-03 02:37:59 +00:00
phpnut
d284f74b10 Merging fixes and enhancements into trunk
Revision: [1907]
Fixed doc comment for loadPluginModels()

Revision: [1906]
Added function to load plugin models.
This will not attempt to load an AppModel used by a plugin.
More work is needed on work around for this.
A conflict with class names would be an issue.

Revision: [1905]
Adding component callbacks and RequestHandler component

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1908 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-02 23:01:23 +00:00