Corrected error message with correct method name in scaffold_error templates.
Removed unneeded check for Controller::persistModel in 1.2.x.x.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4038 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2629]
Fixed recursive associations when set to 0, did not add the hasOne or belongsTo in the query.
Changed scaffold to use recursive setting of 0 in all methods that call Model::findAll()
Fixed Invalid argument supplied for foreach() notice in show.thtml
Removed 500 record limit in Controller::generateFieldNames()
Revision: [2628]
Merging changes from model_php5.php
Revision: [2627]
Fixing messed up characters in dbo_odbc, adding docstrings, and giving connect() a return value
Revision: [2625]
Bringing all DB drivers up to date
Revision: [2624]
Changed fixed for Ticket #609 so and empty array is set instead of null.
This is more consistent with the other arrays that are returned if an association is found
Revision: [2623]
Adding fix for Ticket #712
git-svn-id: https://svn.cakephp.org/repo/trunk/cake/1.x.x.x@2630 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2618]
Adding fix for Ticket #609
Revision: [2617]
Added fix for Ticket #684
Revision: [2616]
Adding patch from Ticket #649
Revision: [2615]
Adding fix for Ticket #608
Revision: [2614]
Additional fix for Ticket #584
Revision: [2613]
Adding fix for Ticket #584
Revision: [2612]
Added fix for undefined index notices
Revision: [2609]
Adding fix for Ticket #658
Revision: [2608]
Adding fix for Ticket #635, and code formatting fixes in FormHelper
Revision: [2607]
Adding fix for Ticket #636
Revision: [2606]
Adding fix to allow associations to be defined through non-associative arrays
Revision: [2605]
Adding fix for Ticket #672
Revision: [2604]
Adding fix for Ticket #708
Revision: [2603]
Adding fix for Ticket #687
Revision: [2602]
Refactoring database drivers, and adding fix for Ticket #398
Revision: [2601]
Merging change from model_php5.php
Revision: [2600]
Adding ODBC driver
Revision: [2599]
Adding fix for Ticket #702
Revision: [2598]
Adding fix for Ticket #699
Revision: [2597]
Fixing an issue in Model::set(), and moving limit() to DboSource
Revision: [2595]
Fixing unit test download URL in Bake
Revision: [2594]
Adding fix for Ticket #698
Revision: [2593]
Adding fox for Ticket #231
Revision: [2592]
Adding fix for Ticket #630, and updating MS SQL driver docstring
Revision: [2577]
Adding $alias property to enable future Oracle support
Revision: [2568]
Merging changes to bake from old sandboxes
git-svn-id: https://svn.cakephp.org/repo/trunk/cake/1.x.x.x@2620 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2448]
removing tabs in last commit
Revision: [2447]
Adding fix for limit in all associations
Revision: [2446]
Added fix for Ticket #569
Revision: [2443]
Adding fix for Ticket #592.
Revision: [2437]
Adding fix for Model::findNeighbours().
Was returning all associations and fields. Now recursive is set to 0 and only returns the prev and next keys array
Example $this->Category->findNeighbours(null, 'Category.id', 4);
Will return,
Array
(
[prev] => Array
(
[Category] => Array
(
[id] => 3
)
)
[next] => Array
(
[Category] => Array
(
[id] => 5
)
)
)
Revision: [2432]
Removed the DS constant from the plugin var when it is set in Dispatcher.
Added "$this->plugin.DS." constant in files where needed after change above.
Added fix for Ticket #577.
Revision: [2428]
Added fix for HtmlHelper::checkbox() it ignored the value provided as a parameter
Fix for Ticket #605.
Fix for Ticket #607.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2449 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2323]
Adding SQL error message display.
Fixed Invalid argument supplied for foreach() in dbo_source.php on line 472
Revision: [2322]
Fixed undefined index datasource.php on line 438
Revision: [2321]
Adding error messages for ConnectionManager if no database file is present.
Revision: [2320]
Merging changes from model_php5.php
Revision: [2319]
Removing $this->validationErrors = null; in Model::set();
Revision: [2318]
Refactoring Model::invalidFields()
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2324 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2316]
Added fix for message: Warning: array_diff(): Argument #2 is not an array in Controller::__construct()
Revision: [2315]
Adding fix for Ticket #517
Revision: [2314]
Corrected scaffold throwing errors when irregular words are used for model/table names
Revision: [2313]
Added patch from Ticket #495.
Added missing ?> bracket at end of file
Revision: [2312]
Corrected model names being set to lower case, When matched to an irregular word in Inflector methods.
Added custom inflections.php file to allow application to have custom inflection rules.
Correct variable in View::renderCache(). error thrown if time class was used $time variable changed to $timeStart.
Revision: [2311]
Corrected $db placed in wrong section of the method
Revision: [2310]
Removing the db attribute from the model, This will help better with persistent objects
Revision: [2309]
Adding fix for Ticket #490
Revision: [2308]
Update to previous commit
Revision: [2307]
Removing references to Model->db. DataBase connections are now singleton-only.
Revision: [2306]
Refactoring getDataSource() into loadDataSource() and enumConnectionObjects()
Revision: [2305]
Reverting changes to this file
Revision: [2304]
Fixing Ticket #496, getColumnType, and docstrings
Revision: [2303]
Adding fix for Ticket #510
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2317 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2151]
Merging changes made to model_php5.php into model_php4.php.
Revision: [2150]
Cleaning up code, removing in line comments
Revision: [2149]
Fixed wrong params passed to SessionComponent::setFlash() in Scaffold class.
Changed View::_render() to only suppress errors in the view when DEBUG is set to 0.
Revision: [2148]
Adding suggestion from Ticket #446.
Revision: [2147]
Added fix for Ticket #443
Revision: [2146]
Added fix for Ticket #444.
Added table.field in the CakeSession class database methods
Revision: [2145]
Renamed _new to _blank in default.thtml.
Starting to refactor changes that broke self joined associations.
Revision: [2144]
Adding fix for Ticket #202
Revision: [2143]
Adding support for nested array-based conditions
Revision: [2141]
Updating View for Session flash changes
Revision: [2140]
Adding Session flash enhancements for a ticket that I took but can't find because someone else closed it
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2152 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2104]
Correct changes of names in scaffold.
Revision: [2103]
Changed methods to protected methods
Controller::_beforeScaffold($method)
Controller::_scaffoldError($method)
Revision: [2102]
Added 2 methods to Controller class that must be overridden in child classes if you place to use Scaffold in production applications.
This will allow you to perform checks before displaying the forms, and also before performing any Scaffold methods.
Each of these methods are passed the name of the method they represent in Scaffold.
Controller::beforeScaffold($method)
Controller::scaffoldError($method)
These 3 name are passed to the methods above, but are not view related
'create' when creating a new record in the database
'update' when updating a record in the database.
'delete' name says what it does
These are view related names passed to the methods above
'index' the list of all records shown in scaffold.
'edit' the edit record form.
'show' when displaying a specific record.
'add' add record form.
Scaffold can now be used to generate forms and customize these on a per app or per controller basis.
Scaffold will first look:
Example: app/views/posts/
Then: app/views/scaffold/
There are also specific naming used for these views each related to a scaffold method.
scaffold.list.thtml
scaffold.edit.thtml
scaffold.new.thtml
scaffold.show.thtml
Added scaffold_error.thtml that is used if a controller does not implement Controller::scaffoldError() when using scaffold and Controller::beforeScaffold() is implemented and returns false
Revision: [2101]
Corrected some bugs found in View that would cause errors when using scaffold.
Revision: [2100]
Added fix for Ticket #427
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2105 3807eeeb-6ff5-0310-8944-8be069107fe0
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
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
Revision: [1891]
Added patch from Ticket #278
Revision: [1890]
Adding patch from Ticket #227
Revision: [1889]
Adding fix from Changeset [1631].
This fixes Ticket #319
Revision: [1888]
Added fix for Ticket #315
Revision: [1887]
Adding patch from Ticket #312
Revision: [1886]
Adding fix that was committed in [1304] back.
Closing Ticket #77 again
Revision: [1885]
Fix added for Ticket #306
Added patch from Ticket #318
Added patch from Ticket #322
Revision: [1884]
Adding fix to Ticket #332
Revision: [1883]
Adding patch from Ticket #330
Revision: [1882]
Adding fix for Ticket #170 back to HtmlHelper::selectTag().
Was lost in a previous merge
Revision: [1881]
Adding fix for Ticket #336
Revision: [1880]
Adding fix from Ticket #307
Revision: [1879]
Plugins will use their own helpers and components if present
Revision: [1878]
Basic implementation of plugins within app/plugins working.
Revision: [1877]
Starting plugin code for multiple apps within one app.
Revision: [1876]
Added Ticket #345.
Revision: [1875]
Added check to AcoAction class that would not attempt to load AppModel Class if it is already defined in memory
Added fixes for Ticket #317, Ticket #333, Ticket #343, Ticket #337
Revision: [1874]
Adding fix for Ticket #340
Revision: [1873]
Added themeWeb var to helpers that will be used if a theme class overrides the view class
Revision: [1872]
Adding $format to timeAgo and relativeTime, for gwoo
Revision: [1871]
Docstrings changes. One char at a time we map out Cake.
Revision: [1870]
Docstrings for Session, and corrections to tabbing on datasource.
Revision: [1869]
Docstrings for the core database classes.
Revision: [1868]
Adding patch for Ticket #131
Revision: [1867]
Allowing ajax link titles to not be escaped
Revision: [1866]
Changed error class so calls to ErrorHandler::error() in production setting will work.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1892 3807eeeb-6ff5-0310-8944-8be069107fe0