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
Closes#3396, i18n fixes
Fixed TranslateBehavior::_getLocale() throwing error if I18n class had not been loaded
Added [P]roject to bake
Updated locale pot file
Removed css and js directories from skel
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5809 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: [2654]
Refactored the Object::cakeError()
Revision: [2653]
Adding check for custom error class in app/.
Added check for AppController::appError(); will be called if this method
is in AppController.
Revision: [2652]
Adding fix for Ticket #704
Revision: [2650]
Fixing scaffold CSS
Revision: [2648]
Adding fix for Ticket #717
Revision: [2647]
Adding fix for Ticket #718
git-svn-id: https://svn.cakephp.org/repo/trunk/cake/1.x.x.x@2685 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: [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
Revision: [2406]
Adding model persistence when using var $uses array.
Added var $name to PagesController
Revision: [2405]
Adding 5 of the 7 patches from Ticket #594
Revision: [2404]
Added fix for Ticket #575
Revision: [2403]
"Adding fix for core vendors directory when cake installation is separated into different paths "
Revision: [2402]
Added fix for Ticket #588
Revision: [2397]
Adding fix for Ticket #580
Revision: [2387]
Adding fix for Ticket #558
Revision: [2386]
Adding fix for Ticket #562
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2407 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: [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
Revision: [1764]
Changed var $ds back to $db and var $source back to $table in beta.
Moved last error message out of the object class.
Fixed PHP 4 error in home.thtml.
Revision: [1763]
Added changes made in model error handling lost in merge
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1765 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1761]
Removing old db_acl.sql
Revision: [1759]
Removed unneeded calls to uses().
Changed basics.php listClasses() no longer using folder class.
Starting corrections in DboPostgres class.
Adding missing DboPostgres::query().
Added missing doc blocks to AjaxHelper.
Fixed undefined keys in FormHelper::generateFields()
Reformatted FormHelper::generateFields() adding open and close brackets where needed
Revision: [1758]
Fixed typo
Revision: [1757]
Fixed errors found when using PHP 4.
Fixed a scaffold error
Revision: [1756]
Merging changes to model_php4.php
Revision: [1755]
Fixed scaffolding for the changes made to the model.
Fixed Model::isForeignKey(), replaced array_key_exists with in_array, other function was failing
Revision: [1754]
Committing changes from bundt model to beta.
DataSources will not be in the beta release
Revision: [1751]
Cleaning up a little more in the code.
Removing loading of log.php unless it is really needed.
Refactored dispatcher to speed up the stripslashes code if it is called
Revision: [1748]
removing all references to error_messages and deleting the file
Revision: [1747]
updated more error messages
Revision: [1746]
removing all error message defines
Revision: [1745]
added _() method from 1.0 to basics.php only used to return string right now
Revision: [1744]
Adding fix for ticket #220
Revision: [1743]
More work on ErrorHandler class
Revision: [1742]
Renaming error view for missing database connection
Revision: [1741]
More work on ErrorHandler class
Revision: [1740]
More work on error class
Revision: [1739]
Replacing all $_SERVER variable check with env() in basics.php
Revision: [1738]
Adding env() to basic
Revision: [1737]
Updated session to use env()
Revision: [1736]
Removing ternary operators from Dispatcher
Revision: [1735]
Per nates request I am rolling back ACL to [1373]
Revision: [1734]
Removed the IP in the session class this was not very reliable.
Added a time setting that generates current time adding the Security::inactiveMins() to the session
Removed code that was added to basics.php to replace gethostbyaddr().
Added CAKE_SESSION_STRING define to core.php which is used in the by the Session class to generate a hashed key.
Revision: [1733]
Moving errors messages to ErrorHandler class.
Updating errors view for use with new class.
Updating Scaffold to use new class.
Updated Dispatcher to use new class.
Removing methods from Object class
Revision: [1732]
Adding ErrorHandler class
Revision: [1731]
Adding fix for Ticket #223
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1762 3807eeeb-6ff5-0310-8944-8be069107fe0