Commit graph

70 commits

Author SHA1 Message Date
predominant
6782cb019c Update CakePHP Project link. 2009-11-06 17:00:11 +11:00
predominant
8f75ff58c7 Removing @filesource 2009-11-06 15:24:02 +11:00
mark_story
d59a2c8de1 Making subclassing of ErrorHandler much easier.
Test cases added.
2009-10-09 00:13:08 -04:00
mark_story
f59d95e348 Updating file headers. 2009-10-08 23:46:05 -04:00
mark_story
c2db059732 Adding error methods and templates for Missing Behavior class and Missing Behavior File errors. 2009-08-26 10:02:55 -04:00
AD7six
b2142df2bc adding a newline before all comment blocks 2009-07-24 21:18:37 +02:00
gwoo
643651fe56 Merge master in 1.3 2009-03-19 14:10:13 -07:00
mark_story
fdd6ad856e Fixing issue in error handler, where URL was not escaped with debug == 0.
Tests added.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8028 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-13 14:56:00 +00:00
renan.saddam
9aabc8c893 Removing non-used extract() from missingDatabase()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8000 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-15 02:33:50 +00:00
mark_story
6285f0cb6d Moving __outputMessage to _outputMessage. Changing method from private to protected. Closes #5729
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7861 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-11 00:14:38 +00:00
renan.saddam
6319f8ea69 Removed trailing whitespaces from core.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7847 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 02:54:07 +00:00
AD7six
3f2fa6929b changing tabs for spaces in comment block indentation
Removing address and replacing with cakefoundation url


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7805 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-30 17:30:26 +00:00
mark_story
1b456f2cf1 Applying patch from 'davidpersson' fixing code spacing. Closes #5643
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7772 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-23 00:10:44 +00:00
mark_story
593871d58f Removing redundant html escaping from ErrorHandler
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7605 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-14 23:24:01 +00:00
mark_story
5199c5cb9d Fixed issues with inifinite recursion on missing component. Refactored missing helper errors. Closes #5297
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7483 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-22 01:52:37 +00:00
mark_story
71634b6b1d Relaxing Sanitization on error messages to prevent UTF-8 characters from being stripped. Closes #5133
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7352 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-22 23:33:01 +00:00
phpnut
84069e372f Fixes #5021, findAllThreaded does not work with tables that have set primaryKey to something other than 'id'
Removed am() from Model::_findThreaded();
Cleaned up error.php and dispatcher.test.php

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7318 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 12:37:18 +00:00
mark_story
80b6e027c1 Fixed infinite recursion on missingHelper error triggered by missing helper defined in AppController. MissingHelpers are now removed from the helpers array to prevent recursion. Closes #5010.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7305 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-02 00:54:53 +00:00
nate
200673dfce Fixing database errors when no DB connection present on initial splash page
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7300 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-30 01:09:13 +00:00
gwoo
605bfa5bc5 closes #4842, clean up logic in ErrorHandler
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7228 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-21 15:35:17 +00:00
gwoo
97a57a0f05 fixing bug in error handler when callbacks were moved to construct classes, moved callbacks back to dispatcher for now until we find a better place in the controller, fixed caching for the "home" page by adding check for "/', original test case was incorrect.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7177 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-12 18:36:08 +00:00
gwoo
75e157a167 updating error test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7175 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-11 16:01:11 +00:00
gwoo
1e231e9511 some cleanup, wrapping uses() in class exists
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7172 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-11 15:46:31 +00:00
phpnut
8a30290862 Fixes #4883 Duplicated component name
Removed bad test since AppController::beforeFilter() is now run when Controller::constructClasses() is called.
Fixed bug with App::import() not caching properly.
More performance changes

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7169 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-11 08:54:27 +00:00
gwoo
b3f605c1d8 fixes #4836 components initialize for error pages, also changing Object::stop() to Object::_stop()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7116 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-04 19:04:58 +00:00
gwoo
7ed4665318 updating error handler and erro404 template. closes #4799
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7073 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 04:50:38 +00:00
nate
42da5aba81 Moving Cake folder to correct location
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7063 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 11:40:08 +00:00
DarkAngelBGE
e6e0d852a2 deleting cake folder from svn
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7061 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 10:59:16 +00:00
nate
7402680cc1 Misc code formatting and whitespace fixes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7020 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:11:41 +00:00
gwoo
aaab0306aa removing exit() and replace with $this->stop();
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7012 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 16:57:46 +00:00
gwoo
c6e1a59891 fixes #4610, missing methods in ErrorHandler
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6779 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-09 16:35:43 +00:00
phpnut
acc79fe0f3 "Closes #2508, Allow requestAction to use array urls
Fixes #4325, error pages no longer displayed since changeset
Closes #4329, remove am() usage in core"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6563 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-12 21:19:31 +00:00
gwoo
e9c15fe33e updating ErrorHandler with test, fixes #4102
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6462 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-15 16:49:17 +00:00
gwoo
f598b58465 updating console so shells and tasks do not have to extend Shell, updated error handler params and maintained backwards compatibility closes #3538, updated Object::cakeError to add app_error, closes #3982
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6407 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-24 20:32:10 +00:00
phpnut
cb53dc61b0 "Closes #2897, Built-in file validation.
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
2008-01-01 22:18:17 +00:00
phpnut
c000940e36 Closes #2119 Only define clone() in PHP4 when it hasn't been already defined.
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
2007-11-16 09:35:19 +00:00
gwoo
5ccea91b91 updating error handling: messages, templates and css, updating home page messages
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5943 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-04 07:03:57 +00:00
phpnut
e78fc1e90c Fixes #3305, Console i18n extract using wrong paths.
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
2007-10-20 05:55:37 +00:00
gwoo
8bb67d9f6a Adding Schema support, updated fixtures, deprecated loadInfo, changed Dbo::describe in all dbos, fixed tests,
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5563 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-21 21:46:59 +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
77da587c11 Fixing visibility based on attribute name convention
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5151 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-22 02:38:12 +00:00
mariano.iglesias
3e8d42bb72 Adding documentation and internationalizing some messages
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5132 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-20 06:30:19 +00:00
gwoo
326c2a900d fixed missing dispatcher in ErrorHandler, updated AclScript, added initialize method to CakeScript which should be used by subclasses as the constructor.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5002 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 00:25:04 +00:00
phpnut
8170b1f89f Correcting [4849], would attempt to load non existent model is var $uses was not set
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4850 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-12 07:38:25 +00:00
phpnut
e6f519a0a8 Adding fix for Ticket #2349
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4849 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-12 07:29:45 +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
nate
6776cc2e10 Adding URL fix for Ticket #1679
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4194 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 07:07:57 +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
553190bb98 Added fix for Ticket #1679
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3939 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 10:48:22 +00:00
phpnut
19f5a9b677 Adding fix for #1556.
Errors are no longer cached

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3774 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-31 06:52:04 +00:00