Changed AuthComponent::startup() so that the password key $this->data is set to null when login fails instead of being unset."
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6589 3807eeeb-6ff5-0310-8944-8be069107fe0
{{{
var $components = array('Auth', 'RequestHandler');
}}}
Controller::RequestHandler; would not be available.
Added additional tests
Fixed loading of libs/xml.php "
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6372 3807eeeb-6ff5-0310-8944-8be069107fe0
Implemented Validation::extension(); and Vaidation::range();
Updated copyright notices in all files"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6296 3807eeeb-6ff5-0310-8944-8be069107fe0
Closes#2213, Support multiple plugin paths.
Closes#2234, filepaths to behavior classes should be cached in class.paths.php also
Closes#2345, ability to group components into subfolders
Closes#2645, Improvement to basic.php for class loading.
Fixes#3526, Cache::write, when using just the config name, it fails.
Fixes#3559, loading plugin model as assoc don't work.
Closes#3567 Controller Folders (Note this does not need routing to work, but controller names can not conflict with others in the same application so naming must still be unique)
Fixes#3579, email.php component: Parse error with php 4.
Adding new class and file importer.
Updated most of the core to use the importer.
Added ClassRegsitry::init() that will create and instance of an object and store it in the registry.
Deprecated most of the load functions in basics.php
Plugin model loading now forces using the dot notation, to use models within a plugin, all the model associations must be in the PluginName.Model syntax, if this is not used, the plugin will look for the models in the main app/models directory first, if not found then it will search the plugin directories recursively until it finds a model.
var $belongsTo = array('SomeModel'); will look for some_model.php in the app/models
var $belongsTo = array('MyPlugin.SomeModel'); will look for some_model.php in my_plugin/models
var $belongsTo = array('MyPlugin.MyPlugin', 'SomeModel'); will used my_plugin/models/my_plugin.php and app/models/some_model.php
The controllers of the plugin will still look for the default models inside the plugin if var $uses is not set:
var $uses = array('SomeModel'); will look for some_model.php in the app/models
var $uses = array('MyPlugin.SomeModel'); will look for some_model.php in my_plugin/models
var $uses = array('MyPlugin.MyPlugin', 'SomeModel'); will used my_plugin/models/my_plugin.php and app/models/some_model.php
All of the above will work between plugins and main app
These changes also allow placing model and controllers is sub directories
Removed old class.paths.php file generation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6001 3807eeeb-6ff5-0310-8944-8be069107fe0
Fixes#3500, Auth and Security at the same time. input a error username or a error password. the failure redirector will mistake.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5990 3807eeeb-6ff5-0310-8944-8be069107fe0
Added ability to turn off HTTP_USER_AGENT check in a Controller::beforeFilter(),
Added id() to Session helper and component to return current Session id, the component accepts a $id parameter to force setting the Session id which must be called in a Controller::beforeFilter().
Sessions id are not longer renewed if a request is from Ajax, or from requestAction();
When Security.level (1.2) or CAKE_SECURITY (1.1) is set the 'high' renewing of Session id only happens if request is 2 seconds after the last request.
Added $_Session[Config][timeout] which forces renewing Session if request are within the 2 second limit and over 10 request.
If an application is expected to make multiple request (more than 10) to the server in a single proccess, Configure::write('Security.level', 'medium'); (1.2) or $this->Session->security = 'medium'; (1.1) should be used in a beforeFilter for the specific methods.
1.2 Sessions allow using CacheEngines to store Sessions, be aware that using memory caching as the only storage of Sessions is not reliable. Further work will be done to allow using the CacheEngines with database Sessions, etc.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5982 3807eeeb-6ff5-0310-8944-8be069107fe0
Added Controller::_initComponents();
Changed helpers and components to allow using plugins helpers or
components.
Syntax:
var $helpers = array('PluginName/HelperName');
var $components= array('PluginName/ComponentName');
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3315 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2522]
renamed Bake class file
Revision: [2521]
removing old bake scripts
Revision: [2520]
Adding new Bake script
Revision: [2519]
Adding fix for Ticket #622
Revision: [2518]
Adding fix for Ticket #535
Revision: [2517]
Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model
Revision: [2516]
Adding fix for Ticket #618
Revision: [2515]
More error page fixes
Revision: [2514]
Adding fix for Ticket #690
Revision: [2513]
Removing empty method
Revision: [2512]
Adding fix for Ticket #675
Revision: [2511]
More fixes for Ticket #670
Revision: [2510]
Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1.
Revision: [2509]
Adding fixes for Tickets #677 and #681
Revision: [2508]
Added patch from Ticket #632
Revision: [2502]
Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore
Revision: [2501]
Rewriting foreach loops in queryAssociation()
Revision: [2493]
Adding fix for Ticket #673
Revision: [2492]
Adding reconnect() method, to reconnect to database with different settings
Revision: [2491]
Adding Microsoft SQL Server driver [EXPERIMENTAL]
Revision: [2490]
Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations
Revision: [2488]
Adding fix for Ticket #651
Revision: [2487]
Adding fix for Ticket #665
Revision: [2486]
Adding fix for Ticket #655
Revision: [2485]
Forcing DboMysql to validate disconnect, and adding fix for Ticket #663
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
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: [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: [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
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
Revision: [1841]
Merging changes made in model_php5.php to model_php4.php
Revision: [1840]
Adding fix for PHP 5 when using mysql_connect setting.
Commented out the call to Dbo*::disconnect(). This was closing connections early.
Adding fixe for Ticket #302.
Adding Enhancement for Ticket #300.
Adding fix for Ticket #299
Adding Enhancement for Ticket #298
Adding fix for Ticket #297
Adding Enhancement/Patch from Ticket #296
Revision: [1838]
working on deeper recursive joins
Revision: [1837]
Updating copyright information in all files
Revision: [1836]
Adding fix when setting a field value to 0.
Before it would set this to NULL, which was not expected result.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1842 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1796]
Adding missing layout error messages.
Changed more errors in View class to use the ErrorHandler class
Revision: [1795]
Added the missing error messages I found after RC 1 was built.
Corrected errors in the View class when helpers where not found.
Added error views for missing component classes and files.
Updated views for missing view classes and files
Revision: [1794]
Adding fix for Ticket #273
Revision: [1793]
Correcting loading order of required files in bake.php
Revision: [1792]
Added fix for Ticket #271
Revision: [1791]
Fix for Ticket #268 and Ticket #272
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1797 3807eeeb-6ff5-0310-8944-8be069107fe0
Merging:
Revision: [1644]
Bad merge last commit had second param in the class_exists() call
Revision: [1643]
Fixed errors introduced in last changes:
Variable that was passed the loadController function was not expected controller class name,
It was the name fo the class without Controller. This would cause the loading to fail, since
it was possible that a class was already loaded with the name that was passed.
Example NewsController and a model called News.
Revision: [1642]
Added patch for MySql 5
Revision: [1641]
removing second parameter in the class_exists function calls.
closes Ticket #209
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1645 3807eeeb-6ff5-0310-8944-8be069107fe0