CakePHP : the rapid development php framework

CakePHP makes building web applications simpler, faster and require less code.

Changelogs

Version 1.2.6.

  • be7ddfb Updating version numbers to 1.2.6
  • 7ac87d8 Updating links on home.ctp to point at github and lighthouse.
  • 7cfb5ab Minor refactor of Model::_deleteLinks to improve readability.
  • 2d81d25 Fixing issue where webroot paths would be incorrect when using a virtual host setup and no mod_rewrite. An additional app/webroot would be appended. Incorrect tests updated. Fixes #259
  • fc30405 Removing Session deletion of nonce token on blackhole. Fixes possible CSRF risk from multiple submissions of the same invalid data. Refs #214
  • c195d65 Fixing TranslateBehavior test to run in php4.
  • 9cbb9d1 Fixing php4 compatibility and errors from array to string conversion.
  • 16eaa99 optimization in AuthComponent class startup method
  • b1a0eb1 Fixing double DS when requiring cache engines. Fixes #254
  • 0320044 Fixing TranslateBehavior and $tablePrefix. Closes #168
  • 5d35fd8 Fixing issues in DboSource::defaultConditions() and DboSource::conditions() where doubly deleting a record from the beforeDelete and delete() could create incorrect conditions that would delete all records in a table. Fixes #250
  • 3174630 Refactoring tests in l10n that use object properties.
  • ae4a31f Making DEFAULT_LANGUAGE also set $language var which sets Config.language to a correct value. Fixes #228
  • 96fd0bf Fixing error introduced in previous commit due to bad merge
  • cb4a1f0 Fixing issue with persistModels and plugin models, closes #192 and #198
  • 5c47d8d Trimming trailing whitespace from files. Refs #201
  • 15b8a3e Updating copyright date on all files.
  • 4e3aede Fixing persitModel and plugin Behaviors. Closes #192
  • 5149d65 Adding redirect to baked controllers so when no delete could be done an error page is not displayed. Fixes #188
  • 11a5403 Removing unused variables from inflections.php. These variables are artifacts from previous refactorings and have been non-functional for quite sometime. Fixes #163
  • 730153b Adding isset() checks for CakeSchema::compare() when diff'ing db indexes.
  • 026eeb6 Correcting and improving doc block for Model::__construct.
  • 3c88d81 Adding tests for model method validation with multiple parameters and addition of original validation rule to method params. Closes #149
  • 425dcf2 Applying patch from 'tPl0ch', connect key is set to 'mysql_connect' when not using persistent connections. Fixes #132
  • 6356c6e Fixing issue where forms generated with requestAction would be missing the _Token fields that Security component creates. Test cases added to ensure that token key does not change when requestAction is used. Fixes #68
  • bbc72c3 Updating use of deprecated split() to use preg_split().
  • c8297ff Minor optimization on Inflector::variable
  • aa3a197 Reformatting test case. Fixes #104
  • bdfb50e Fixed a bug in Set::extract. Wrong key returned when two arrays are at the extraction level.
  • 4ac2996 Refactoring Model::__validateWithModels. Should be slightly faster as loops are smaller.
  • a490e24 Adding test for validation of with models canceling a save.
  • 33038c7 Removing redundant 'isset' check from DboMysql::connect
  • 02330b2 Making DboSource::fields() accept an expression object. Fixes issues with sql parsing over quoting special SQL syntax. Tests added Fixes #66
  • 47a9401 Adding test case for cached view files, and fatal errors caused by the view instance not being registered. View instances are now registered when rendering view caches, and unregistered if the cached view fails. This fixes issues rendering flash messages with custom layouts and fixes FormHelper methods inside nocache blocks. Fixes #60
  • c3bf6bc Checking for french error on dbo_mssql. Fixes #77.
  • 7c2cdb1 Adding tests to Xml::toString to disprove #395
  • cc750d1 Adding test to disprove #385. Proves saveAll with validate => first behaves correctly.
  • be64f26 Updating doc blocks for model::validates.
  • 6046528 Moving XmlNode::__killParent() to a protected method so Xml can access it. Adding _killParent(true) call to Xml::__destruct. Forces destruction of circular references held in child objects when an xml object is garbage collected. Fixes #369
  • cd46f4d Fixing function signature of ThemeView constructor. Fixes issues where ThemeView would always be registered causing issues with EmailComponent and themed views. Fixes #370
  • fccfe14 Expanding doc block for ClassRegistry.
  • 26aa373 Fixing _name_ elements being inserted into serialized xml from Xml lib. Test case added. Fixes #367
  • ad20e43 Removing unneeded code for minor optimization
  • 64dffb7 Moving shared method from DboMysqli and DboMysql up to DboMysqlBase. Fixes #358
  • 51d0805 fixes Text::toList to allow passing array( 1=>"abc", 2=>"abc" ) and the updated test case
  • d758dbc Updating cake.generic.css to let .altrow class to apply to dd and dt elements. Fixes #361
  • 58446e0 Adding documentation note about $options['q'] Refs #357
  • 72c0e2c Applying minor optimization from 'robustsolution' to Router::connectNamed(). Fixes #312
  • 5aba143 Applying optimization to Controller::postConditions from 'robustsolution' Fixes #287
  • 2e0acbf Making habtm join conditions used by __saveMulti when finding link records to remove. It should be noted that having conditions on non-joinTable tables, and not having a model on the joinTable can cause SQL issues. Fixes #304
  • 6c3bcdd Removing commented code.
  • b0aec35 Dispatch::baseUrl() needs optimization a little bit
  • c6c7474 Fix test of the size of lines in MagicDb (included test for it).
  • 7e889d8 Changing require_once to require for custom session handlers. If you are using a class to do your custom session handling you must include checks to prevent duplicate class errors. Fixes #324
  • a30aec9 Applying patch from 'robustsolution' for optimization in Dispatcher::dispatch. Fixes #317
  • 5d25780 fixing typo.
  • a96c157 Applying optimizations to use of count() from 'jrbasso'
  • 71df8db Replace function sizeof (alias) by count.
  • 52fcabc Little optimization in redirect of controller.
  • 1cef0ac Little optimization in postConditions of controller.
  • 1c0c1bc Replace function split by explode when possible.
  • 911a99b Replace function preg_split by explode when possible.
  • df9e1e0 Replace function join (alias) by implode.
  • 1acc60b Replace function die (alias) by exit.
  • 9b6b258 Replace function is_integer (alias) by is_int.
  • 9dcac18 Adding commented Asset.timestamp block to core.php
  • 4a8808e Removing the argument passed to mssql_get_last_message(), it does not accept any argument.
  • 9eb1950 Removing duplicate condition check. Fixes #314
  • 63ab96d Setting $primary = false inside DboSource::queryAssociation. Fixed #208
  • ea6e3dd Fixing issue with bake model <name>
  • 6039d6e Applying optimization in Dispatcher::parseParams() from 'robustsolution'. Fixes #309
  • 17e377d Updating doc block for MemcacheEngine
  • 862ff82 Updating Configure::store to fix escaping issues
  • 06d4e5e Reformatting code in memcache. Adding unset() to test case to remove unnecessary keys that can cause test failure.
  • 8b1a2b1 Applying optimization in Router::__parseExtension from 'robustsolution'. Fixes #301
  • 9376826 Fixing HttpSocket::buildUri when host key is empty. Tests added Fixes #271
  • 8d407ac Adding test to form helper to increase code coverage.
  • d302ed1 Fixing comment block formatting.
  • a67a977 refs #291
  • ea48244 test to prove ticket #291
  • 1c8a2f2 Changes Model::find() to allow modification of DataSource connection during callbacks.
  • 38f5781 Changing new Model() for ClassRegistry::init(). Fixes issues when baking admin and non-admin methods for a controller that uses bound translations + TranslateBehavior. Fixes #245
  • a7a6dc8 Fixing issue where SecurityComponent::_validatePost could generate notices if elements were removed from _Token array. Tests Added Fixed #228
  • 82a2b1a Changing import of Dispatcher to direct require. Modifying order of operations in Configure::__loadBootstrap() moving inclusion of app/config/bootstrap.php after the creation of core cache configs. This allows App::import() to be used in the bootstrap file with cached paths.
  • 6db91b0 Fixing issues in ContainableBehavior that could leave models unbound when 'fields' was used as part of containment conditions. Fixes #253
  • dd0c4a6 Test to prove ticket #253
  • 30dc0cf Removing unused $view property from CacheHelper. Fixes #272
  • 4bbfcbf Fixing limit:0 and controller::paginate. Removes possibilty to generate sql errors by inputting invalid limit options. Tests updated. Refs #264
  • 0327f15 paginator works with limit 0 now too
  • b4f6dd9 Adding tests and support for binary columns in model task. Fixes #241
  • e609875 Updating Model::invalidFields, so returning false from beforeValidate() will abort both the validation and saving() of the record. Tests added to check beforeSave, beforeValidate, and beforeDelete return values. Fixes #257
  • 8c46cc4 Fixing issue in Dispatcher::cached() where plugins ending in asset extensions would be incorrectly handled. Test added Fixes #237
  • d63218c Fixing error in previous commit.
  • 133299c Removing duplicate constructor from ShellDispatcher. Fixes warnings under PHP5.3. Fixes #132
  • 6b043c6 Updating doc blocks for paginator helper.
  • 9d2628f Removing tab
  • a87d31c Fixing $cacheAction requiring the inclusion of the controller name for view cache files to be generated. This behavior makes the cache helper behave as documented. Test cases added. Fixes #232
  • 5124490 Updating merge vars test to skip itself if run in a group context. Updating controller group.
  • 6b616b7 Adding skip for validation test, for DNS servers that reply for non-existant domains.
  • 7601951 Updating lib group to run non-mvc libs. Removing no_database group. It was redundant.
  • 24a75a2 Updating Javacsript helper to use a real skipIf
  • 0637272 Updating doc block on Controller to include more information about $uses.
  • 59566d4 Updating component test case to no fail in group test. Updating controller group to only run controller classes.
  • a91970b Fixing security component test failures when run as part of a group.
  • 84a1090 Fixing typo on variable name.
  • 2e3bbe3 Array coding convention and extraneous punctuation
  • 17edec8 Changin how HttpSocket parses query string parameters. Makes HttpSocket querystring parameter parsing more congruent with how PHP handles query string parameters in that it doesn't require urlencoded characters. Tests added. Fixes #156
  • a31a2d2 Fixing Debugger::log() . The method used protected properties only available in test cases. No stack trace was being logged when called either. Method has been updated to match its doc block better. Fixes #222
  • ad305a8 Applying optimization from 'ermayer' Reduces functions called from Folder::addPathElement() Fixes #178
  • 23ab845 Adding discrete tests to Folder::addPathElement
  • 00d7c65 Improving documentation for PaginatorHelper::sort() Fixes #210
  • 5a093e5 Fixing issues in postgres with time columns and '' values. Tests added. Fixes #213
  • 79fdd8b Adding test to ensure blob integrity. Disproves #199
  • 72830cb Adding test case for model task Fixing missing case for float datatypes when generating fixtures. Fixes #204
  • 14bd478 Removing length() from DboMysqli, fixes incorrect float length parsing. Test case added.
  • c6999ae Moving DboMysqli::describe() and DboMysql::describe() into DboMysqlBase. Removes duplicated method code.
  • d25497c Adding Skip to mb_strrpos test case. Skips the test if mbstring is installed and php version is 5.1.x. mb_strrpos had an incompatible function signature in these versions.
  • 3dbae37 fixing failing i18n testcase, caused by setting $category parameter for __c(), __dc() and __dcn() as LC_MONETARY instead of numeric value
  • 4e8c268 Making the test more clear by avoind +-2 days thing. Fixes #186.
  • 1ee9771 Removing ife() from AclShell. Refs #6562
  • 0657afc Removing use of low() from core classes. Refs #6525
  • 8b419d2 Removing use of ife() from core classes.
  • 0cc1d84 Removing use of e() from core and test suite.
  • 0e23fdf Fixing infinitely nesting stack frames when TreeBehavior::reorder() is called and the models $cacheQueries = true and there are a sizable number of records being manipulated. Test cases added. Fixes #188
  • c6f783e Fixing issues with CakeTestCase test case and debug = 3. Fixes #189
  • 072e1ef Adding Datasource::enabled() Allows for checking a datasource's ability to be used before attempting to connect it. Added enabled() to all the core dbo's. Fixes whitescreen when trying to use a non installed database driver. Fixes #131
  • a15289f Saving few Router::normalize() calls, will may increase performance. Fixes #179.
  • 0a79822 Expanding some doc blocks for DataSource.
  • 3922f13 Making DboMysqlTest pass when a connection with a prefix is used. Fixes #185
  • 79e96e5 Updating localePaths path. Fixes #184
  • ae342c6 Fixing skip in previous commit: if skip condition evaluates to true, to prevent a fatal error from being produced.
  • 7ff3fcc Adding skip for non-existence of DateTimeZone class in time helper tests.
  • 2675bbc Fixing FormHelper::__selectOptions incorrectly selecting options due to type juggling. Fixes #167
  • a36c2ec Removing self inclusions for test cases. Refs #174
  • 43dbf71 Doing a little optimization for php 5.1 <, also fixing tests on Windows. Fixes #155.
  • 082156f Fixing FormHelper::input() label's for attribute when a datetime type is created and dateFormat or timeFormat is set to NONE. Fixes #168
  • 604b7e0 Splitting a long test for FormHelper up into smaller test cases.
  • a4d09a8 Adding tests for previous commit, showing alteration of \ into DS.
  • e5a99b2 Updating RequestHandler::renderAs() to respect DS constant, fixing issues on PHP4 + Windows. Fixes #97
  • e04cc81 Updating doc block. Removing redundant condition.
  • 6e9ca43 Fixing connection methods in DboSybase. Fixes #145
  • 2d2e692 Updating doc blocks to improve API parsing.
  • 51e4714 Updating doc blocks to improve parsing in the API.
  • 3bf94e6 Updating documentation for Model methods to improve api parsing. Removing redundant include.
  • c47e899 Fixing HtmlHelper::css, and JavascriptHelper::link so that files containing the asset extension always get the extension added. Test cases added. Refs #139
  • f12cbdb Fixing CacheHelper and multiple cake:nocache tags in a view file, breaking cake:nocache following $content_for_layout. Fixes #136
  • 347c175 Updating documentation blocks for CacheHelper.
  • 5f49a0f Updating path handling inside i18n. Removes the extra DS that was appended to some paths. Fixes #126
  • 6dbba17 Fixing issues with DboSource::execute() where queries would not be run if stats = false in the options. Tests added.
  • dc220bb Fixing DboSybase::connect() to use port configuration value. Thanks 'tPl0ch' for the various attempts :) Fixes #90
  • 778a6b9 Reversing change from [a37fc0d455e373b30a73f11687885572c6e4b90d]. As the additional & causes errors in PHP <= 5.2
  • bcb5e42 Adding test for previous commit.
  • 51508c6 Fixing error in php5.3 when calling behavior methods that had more than 6 parameters.
  • 508d737 Updating HtmlHelper::css, JavascriptHelper::link to not replace multiple occurences of CSS_URL or JS_URL when using Asset.filter settings. Test cases added. Thanks to 'robustsolution' for the patch. Fixes #105
  • 06cf974 Fixing XmlHelper::elem() when value is null and cdata = true. Removing empty invalid tag. Test cases added. Fixes #127
  • e030400 Updating links in home.ctp to point a new address for changelogs and to code.cakephp.org instead of trac.
  • eb43faf Adding connection manager tests to database group test.
  • 4bf5244 Adding tests for ConnectionManager, and fixing a missing return value for ConnectionManager::loadDataSource().
  • 34deb2a Correcting omission of group in DboOracle. Fixes #98
  • 6946bb0 Updating docs for FormHelper::inputs() Fixes #110
  • cd64043 Adding the 'client' option to the doc block for the email component smtp options. Fixes #111.
  • 022f8cc Making conditions easier to read. Adding additional test for image timestamping. Refs #108
  • 07a89cd Updated Html and Javascript helpers to suffix asset urls with timestamp even when the app is run off a subfolder on the domain
  • 7116c01 Fixing Xml::toArray() when blank nodes are provided. Fixes #87.
  • 06fb86f Fixing issue where sessions were not correctly started.
  • 5049265 Fixed incorrect doc. block for TimerHelper::format
  • 9b7a10a Applying patch from 'michaelc' to optimize to Shell::out()
  • 317049b Fixing bug when value is '0', it was generating a blank node.
  • e0b6b25 Fixing inherited public properties not being set in SessionHelper. Adding tests for SessionHelper construction and the setting of inherited properties. Fixes #94
  • 793c6ec Making DboSybase able to return VIEW's as part of listSources(), making it similar to DboPostgres and DboMysql. Fixes #91
  • 0065005 Fixing custom error class not being used if error for field is a named index. Test case added. Fixes #76
  • c48d979 Fixing incorrect optional parameters passed to TreeBehavior::children() in TreeBehavior test case. Fixes errors & test failures when running under PHP 5.3.
  • 115ae3f Updating CakePHP version.
  • 5d0ee6d Initial Project Commit