Commit graph

166 commits

Author SHA1 Message Date
mark_story
9e9775ee53 Fixing clearCache() no notices are generated. Closes #5012
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7416 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-01 23:46:53 +00:00
gwoo
4a94397b43 removing deprecated code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7401 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-01 01:04:03 +00:00
mark_story
551cf75bbc Added check for empty array, removes warning. Closes #5012.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7299 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-29 21:26:37 +00:00
nate
df75a06756 Fixing coding standards violations in core, and adding misc tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7222 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-20 20:17:23 +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
gwoo
f7d07012dd cleaning up some deprecated code. renderElement is deprecated, but a the notice was removed for this release. Notice will be thrown in next release and method will be removed in the following release. Refactor of View Caching, along with addition of enabling beforeFilter and component initialize/startup callbacks. Use {{{
//set for the individual action
var $cacheAction = array('view' => array('duration' => '+1 hour', 'callbacks' => false)); 
//globally disable callbacks for all actions
var $cacheAction = array(callbacks' => false, 'view' => '+1 hour');  
//per method
$this->cacheAction = array('duration' => '+1 hour', 'callbacks' => true);
}}}

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7031 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 17:43:13 +00:00
the_undefined
f6aa0e0a09 Marked paths() function as deprecated, closes #4615
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6955 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 07:09:53 +00:00
the_undefined
d64bf9b3d8 Marked old cache function as deprecated
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6914 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 21:44:17 +00:00
nate
c40bead47c Adding charset/encoding settings to h(), closes #4040
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6541 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 21:41:13 +00:00
phpnut
7978745056 "Closes #4029 clearCache deletes more files than expected"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6513 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-08 04:30:55 +00:00
nate
1960be0dfa Deprecating vendor() and removing all instances from the core, fixes #4016
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6497 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-01 05:23:32 +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
63a4e2e899 "Fixes #3717, Temp files read/write errors under load"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6205 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 22:17:42 +00:00
phpnut
de8e7d8b01 "Closes #1854, Core.po not loaded when using /app/locale/..../default.po
Closes #3539
Fixes #3611, Cannot redeclare loadmodels
Fixes #3622, loadControllers() and loadModels() look in wrong folders for AppController resp. AppModel
Added trigger_error to all deprecated functions in basics.php
Refactored I18n class to remove debug_backtrace() usage in basics.php, all translations should be placed in a default.po or .mo file from this point forward.
_ _d() function should be used if domain specific translations are used.
Core translations can be placed in app/locales/{lang}/LC_MESSAGES/core.po or .mo these will now be merged with the specified language strings from default.po will replace the core message strings
All translations are now cached to improve performance.
"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6065 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-23 08:16:23 +00:00
gwoo
fa988bcc18 typo in basics
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6051 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-22 17:38:19 +00:00
gwoo
330058c72f updating env(), fixes #3633
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6048 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-22 17:28:09 +00:00
phpnut
e110032089 "Updating Controller::render() to use App::import() for loading the view class
Corrected typo in basics.php loadView()"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6027 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-19 16:39:14 +00:00
nate
f9e8e82b5b Fixed debug output style for displaying whitespace
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6016 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-17 23:13:52 +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
fbd3811cd1 removing usage of Model::loadInfo() replaced by Model::schema(), removing new lines at the end of some files, removed deprecated chmodr() function from basics, updated bake and scaffold views
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5912 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-28 04:18:18 +00:00
phpnut
7bc90a2eb1 Fixes #3474, Plugin Models Not Loading for 1.2.0.5875 pre-beta release.
Remove deprecated loadPluginController() from basics.php
Fixed changed loadPluginController to loadController in CacheHelper

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5905 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-27 03:27:09 +00:00
gwoo
6dc81ef856 updating i18n functions, fixes #3451
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5881 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 01:25:21 +00:00
phpnut
94d1899fd4 Fixes #3441, Sanitize::clean() doesn't pass options when doing recursion on array data
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5872 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 23:34:20 +00:00
mariano.iglesias
896f62544b Changing @return int to @return integer and @param bool to @param boolean
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5860 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:54:36 +00:00
phpnut
160cd28440 Correcting @return int
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5858 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:11:12 +00:00
phpnut
da97a5c871 Correcting @return bool
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5857 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:09:35 +00:00
mariano.iglesias
2e896e5220 Fixing incorrectly position phpdoc blocks.
Adding more documentation to basic CakePHP functions and Dispatcher.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5852 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 06:17:16 +00:00
mariano.iglesias
897825d596 Adding documentation to classes belonging to Cake console.
Standarizing on datatypes used in phpdocblocs and removing unneeded @return types

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5851 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 05:52:20 +00:00
gwoo
c4a4fec745 updating basics, closes #3397 and adds a change of cake-debug css for 2964
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5833 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-21 17:54:15 +00:00
gwoo
4f8f7a7045 refactoring cache engines, adding tests, update configure fixes #3082
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5700 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-30 07:45:34 +00:00
gwoo
18ab04b32b refactor Dispatcher::__getController to pass all tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5697 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-27 10:58:06 +00:00
phpnut
3e9a2a0851 Removed check for parent class in loadController()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5674 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-20 07:24:57 +00:00
phpnut
a55aa374c7 Fixes #3244,loadControllers() does not work
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5663 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-16 21:10:05 +00:00
nate
8237bf51e3 Removing debug()-only code from pr() (Fixes undefined variable notice)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5650 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-16 17:26:06 +00:00
phpnut
7ab8875a9c Closes #3254, loadController fails when requestAction is called multiple time on a Controller derived from an intermediate controller
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5649 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-16 01:56:31 +00:00
phpnut
ce3f0cf140 Closes #1818, enhancement for the debug() function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5646 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-16 01:36:30 +00:00
phpnut
1b64111871 Closes #1827
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5645 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-16 01:24:34 +00:00
nate
3e7044d4b8 Implementing prefix-based routing, and transitioning configuration away from global constants
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5531 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-16 05:44:06 +00:00
gwoo
43b3b1a0fe moving some bootstrapped stuff to dispatch and updating tests, added paginator counter to bake index template, added option to do "bake controller Posts admin" for baking just admin methods
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5490 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-05 02:03:18 +00:00
gwoo
88ea612a26 adding fix to Dispatcher for tclineks wacky webroot, fixing failing dispatcher tests on php4
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5479 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-02 19:12:19 +00:00
phpnut
ea15f09288 Refactoring loading of plugins.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5464 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-25 21:08:12 +00:00
phpnut
549d86ac23 Refactoring dispatcher.
Added test for changes to Dispatcher.
Updating Model::_ _saveMulti(), moved the insert statement to DboSource::insertMulti() this will allow database that do not support multiple inserts in one statement to save data.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5460 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-25 04:38:28 +00:00
phpnut
5bc14621ca Adding fix for #2683, $_SERVER['SCRIPT_FILENAME'] not available in some installations of IIS
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5405 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 17:41:33 +00:00
phpnut
6a750aa176 Removing else statement in last commit [5403]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5404 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 17:20:45 +00:00
phpnut
75b1e901c0 Adding fix for #2863, When trying to load not existing helper file, loadHelper() returns true
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5403 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 17:17:44 +00:00
phpnut
dac1bd0913 Correcting code structure to standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5315 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 07:51:52 +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
934a2abb93 Adding documentation for CakePHP basic functions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5296 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-19 13:20:34 +00:00
phpnut
cdf9c0bc43 Correcting loading of plugin view classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5218 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-29 13:21:22 +00:00