Commit graph

60 commits

Author SHA1 Message Date
phpnut
9cbdeb4d52 "Fixes #3631, Plugin loadController looking at wrong path"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6050 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-22 17:37:30 +00:00
phpnut
306b577368 "Correcting paths search in Configure::load()"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6038 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-22 01:18:27 +00:00
phpnut
0a664d7fbc "Updating custom view loading"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6037 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-21 18:42:40 +00:00
phpnut
2c28dcf841 "Refactoring Configure::_ _buildPaths();"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6028 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-20 00:39:37 +00:00
phpnut
cd3fee384d "Correcting order when building default file paths.
Fixed Configure::listObjects() to only return files form the proper paths.
Updated Schema class"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6026 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-19 15:54:41 +00:00
phpnut
b0a1b18210 "Refactoring App class.
Added Configure::corePaths() to return paths to core library install.
Added additional tests for App::import()"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6019 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-18 07:18:25 +00:00
nate
97dd2ea2ea Updating cache config check in Configure::__loadBootstrap()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6007 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-16 20:07:38 +00:00
phpnut
1b93e79361 "Updating App::import() to allow using plugin components, behaviors, helpers, and view classes"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6006 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-16 19:10:29 +00:00
phpnut
f60d5bf4bc "Added missing path define"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6005 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-16 18:20:52 +00:00
phpnut
c1533a6aa6 "Correcting path searches for base Classes"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6004 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-16 18:04:02 +00:00
phpnut
87d7124978 Fixing order of code in Configure::__loadBootstrap();
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6003 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-16 12:01:02 +00:00
phpnut
412cc7adfb Adding searching for paths when cake core is installed in the php include_path
Corrected setting for cache key

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6002 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-16 11:31:13 +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
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
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
phpnut
1aa1164b1d Closes #3394, applied test patch
Deprecated define('MAX_MD5SIZE', (5 * 1024) * 1024); in core.php
Removing additional defines in core.php, replaced with Configure::write();
Added CakeSession::__startSession() to check for sent headers before attempting to start the session.
Added notices to Configure::__loadBootstrap() that will be removed before stable release.
Refactored Folder::tree().
Added additional FolderTest cases

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5768 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-16 09:05:25 +00:00
gwoo
a921492b5a updating configure and core.php. fixes a no mod_rewrite issue.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5764 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-15 21:56:31 +00:00
gwoo
1eea608e0c updating Acl to use Configure, adding config stack to CacheEngine, adding notices for defines to Configure, modifying bootstrap for Cache::config() updating tests for acl, auth, and cache.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5752 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-14 01:09:21 +00:00
nate
f2ec5b3908 Updating constant error messages for Configure class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5746 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-10 00:19:16 +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
phpnut
603ed0e39c Initial start of Unicode support, I may move this handling of this to a unicode class.
Implemented multi-byte methods for:
String::strpos();
String::stripos();
String::strtoupper();
Added test cases for String::utf8() String::ascii() String::strpos() String::stripos() and String::strtoupper()
Corrected file encodings.
Added loading of configurations from cake/config
Added specifc case folding files to cake/config/unicode/casefolding


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5691 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-24 23:49:54 +00:00
gwoo
2e60a4d2f1 Configure::__list() fix for undefined variable
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5578 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-24 17:00:32 +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
8dbd6366c1 fix for missing Folder class, #3069
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5525 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-15 14:38:25 +00:00
dho
dbe70a3dd2 Fixing typo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5504 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-10 09:20:42 +00:00
gwoo
7cc6e815d9 fix __list in Configure class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5500 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-07 21:41:38 +00:00
nate
e98d6cbb51 Adding class listing methods to Configure class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5498 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-07 15:38:20 +00:00
gwoo
de4d316d4d updating Dispatcher with changes for base. Allows setting Configure::write('App.base', '/my/base/path'); in bootstrap.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5478 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-02 00:16:28 +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
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
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
phpnut
d2fb7d89ed Fixing bad merge
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5122 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-18 21:32:24 +00:00
phpnut
2950d9210b Fixing error notices that are thrown when tmp directory is not writable
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5120 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-18 21:16:13 +00:00
nate
b0307904ae Fixing (moving) session string warning (Ticket #2377) and adding automatic logging code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4846 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-12 00:34:16 +00:00
nate
169832606c Adding and updating core error messages
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4595 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-06 20:56:45 +00:00
phpnut
9b19833273 Removing error view path setting from viewPaths in Configure class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4586 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-05 09:48:07 +00:00
phpnut
5cdb3bfc91 Moving loading of Debugger class to Configure::write() so it loads only when DEBUG > 0
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4568 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-04 03:45:44 +00:00
nate
f4172f0de3 Patching Configure to bootstrap without an app
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4564 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-28 15:41:44 +00:00
phpnut
5403b58ab7 Fixing Configure::store().
Original version of method would set the array for a $key $value par incorrectly

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4469 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-08 03:25:37 +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
phpnut
92802aeefb Fix for #2031
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4386 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-01 07:17:54 +00:00
phpnut
2ef3e325ca Changed Configure::_ _writeConfig() to use instance from getInstance().
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4292 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-14 01:29:20 +00:00
phpnut
bcd2a951e4 Adding check for existence of Core key in class.paths.php.
Change Configure::_ _writeConfig() to cache files for 10 seconds if DEBUG > 0.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4291 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-14 01:25:13 +00:00
phpnut
55e9a1eda6 Reverting changes from [4285]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4286 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-12 17:25:56 +00:00
gwoo
8eccba69ce adding a return false to cache and configure
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4285 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-12 16:37:56 +00:00
phpnut
d967e98ee1 Adding addslashes() to Configure::store() so content will have backslashes before characters that need to be quoted.
Removed error notice that is thrown when file is not present

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4284 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-12 01:33:18 +00:00
gwoo
7019ee7d26 adding empty $config to Configure::__writeConfig, update to model for multiple datasources with a table prefix, added option to wrap xml with <data> to wrap the model elements when using Model::set()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4276 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-10 11:15:43 +00:00
phpnut
a1651041dd Correcting params in doc comments
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4275 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-09 22:36:29 +00:00
phpnut
e64de54a51 Adding new methods to Configure class that is used to created a cached version of config files.
Adding Configure::store() method call to bootstrap.php to create a cached file for class paths.
Adding Configure::read() to load class paths into Configure instance.
Adding check in loadModel() to get the class path from Configure::read('Models'); if set, if values are not set, the correct file is found and added to the cache file for faster loading.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4274 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-09 22:32:48 +00:00