Commit graph

197 commits

Author SHA1 Message Date
mark_story
6d269ce25d Merge branch '2.0' into 2.1
Conflicts:
	lib/Cake/Config/config.php
	lib/Cake/Console/Command/Task/ModelTask.php
	lib/Cake/Console/Command/TestsuiteShell.php
	lib/Cake/Model/CakeSchema.php
	lib/Cake/Model/Datasource/Database/Sqlite.php
	lib/Cake/Test/Case/Model/ModelTestBase.php
	lib/Cake/Test/Case/Routing/DispatcherTest.php
	lib/Cake/Test/Case/Utility/FileTest.php
	lib/Cake/VERSION.txt
2011-12-03 13:45:28 -05:00
Kyle Robinson Young
8197f87dbc Spelling and grammar fixes 2011-12-01 21:58:09 -08:00
ADmad
73674c648c Moving AppShell inside Console/Command for consistency with file location of other App classes. Also making all core shells and tasks extends AppShell instead of Shell. Closes #2278 2011-11-26 02:48:49 +05:30
mark_story
fb7d931bef Merge branch '2.0' into 2.1
Conflicts:
	lib/Cake/Config/config.php
	lib/Cake/VERSION.txt
2011-11-15 23:10:34 -05:00
mark_story
ccefe02de9 Fix issue with duplicate class inclusions.
When trying to load a class that shared a prefix with an existing
class on case insensitive file systems duplicate class errors could
occur.  This would happen primarily with models and missing model classes.

Fixes #2223
2011-11-13 16:15:32 -05:00
Kyle Robinson Young
dba4d21492 Add @link to App docblocks and missing _packageFormat docblock 2011-11-13 10:18:42 -08:00
mark_story
9347ca2dc8 Fix requestAction post simulation.
POST data should not trigger notice errors.
Also fix issue where POST data could not be simulated with a
string URL.

Fixes #2248
2011-11-13 09:44:48 -05:00
mark_story
a7fcb0a61c Fix more strict errors. 2011-11-12 21:42:20 -05:00
mark_story
a2b6f18000 Merge branch '2.0' into 2.1 2011-11-06 11:39:01 -05:00
mark_story
3fa0bdb60f Revert "Fix missing objects in App::objects()"
This change caused non controller objects to show in the
controller list.  Reverting until a better implementation
can be done.

This reverts commit ba6f3c17fa.
2011-11-06 11:24:33 -05:00
ADmad
e1354b2ee6 Merge branch '2.0' into 2.1 2011-11-06 20:39:08 +05:30
mark_story
ba6f3c17fa Fix missing objects in App::objects()
App::objects() should include core objects when asking
for application objects.
2011-11-06 09:42:15 -05:00
Yosuke Basuke Suzuki
f861cc6e09 Proposal. Adding new package using App::build().
For instance, adding new 'Service' package to app search paths.
2011-11-03 21:47:28 -04:00
mark_story
205d75587c Move registration of CakePlugin.
Move the uses() call to Cake/bootstrap.php
CakePlugin is used by App, and should be loaded along with
other core classes like Configure and Cache.

Fixes #2147
2011-10-23 13:54:13 -04:00
mark_story
7e89442a13 Make App::_loadVendor() static.
Fixes strict warnings.
Fixes #2137
2011-10-21 20:37:24 -04:00
Rachman Chavik
2bb93761cc fixing typos 2011-10-19 12:19:28 +07:00
Jose Lorenzo Rodriguez
91d0a081fb Fixing more links in doc blocks 2011-10-15 11:38:49 -04:30
Yosuke Basuke Suzuki
0b6c93cf82 Refactoring App::build() so it looks more readable 2011-10-14 17:11:45 -04:30
mark_story
ea113922bd Removing extra 0 index in request parameters.
When using requestAction with the return parameter, there
would be an extra 0 index element that would create incorrect
routes in the requestedAction.
Fixes #2067
2011-10-05 20:55:17 -04:00
Yosuke Basuke Suzuki
fbf4449b9e Refactoring: clean up the foreach loop.
- cleaner code.
- reduce call of array_values and array_unique.
- clear intent of code.
2011-10-05 15:13:19 +09:00
Yosuke Basuke Suzuki
810e2a4ffe Bypass unnecessary foreach loop when $paths is empty to improve speed. 2011-10-05 15:08:30 +09:00
Majna
681207e327 Fixed doc block comments. 2011-09-28 22:33:46 +02:00
Jose Lorenzo Rodriguez
c45538ab08 Making CakePlugin::loadAll() static as its fellow class methods 2011-09-21 13:31:11 -04:30
ADmad
08026e5828 The 'default' config for Configure class is now auto created on first use if not already created. 2011-09-18 00:06:37 +05:30
mark_story
59e306526f Adding 'vendors' alias to App
- Vendor is the new directory name, and a legacy mapping should exist.
  This makes App::path() match App::import() and all other packages.
- Add an alias for plugins -> Plugin.  It also was missing the alias,
  that matches the new style package names.

Fixes #1972
2011-09-12 23:20:29 -04:00
Mark Story mark@mark-story.com
3a8b344208 Fixing issue where CakeTestCase would erase custom bootstrapped paths in tearDown().
Adding App::paths() to simplify getting all the paths App knows about.
Fixes #1934
2011-08-29 22:14:18 -04:00
mark_story
9ff922cbc7 App::objects() should skip directories and files starting with
`.`.  These generally contain version control or OS metadata, and
not code CakePHP can use.
Fixes #1933
2011-08-28 15:36:19 -04:00
Juan Basso
f5a54d00dd Changed methods and attributes from private to protected. 2011-08-20 00:43:34 -04:00
Juan Basso
620a65b2fc Merge branch '2.0' into 2.0-api-doc
Conflicts:
	lib/Cake/Test/Case/View/Helper/CacheHelperTest.php
	lib/Cake/Utility/Debugger.php
2011-08-14 21:12:05 -04:00
mark_story
fdacc9de16 Fixing issues with request stack not being used correctly
when there are requestAction requests being performed.
Adding Router::popRequest() to allow manipulation of request stack
so nested requestAction or serial requestAction calls work correctly.
Fixes #1906
2011-08-12 21:21:05 -04:00
mark_story
e4a7c8f3d7 Cleanup of minor issues found with phpmd. 2011-08-06 21:15:31 -04:00
Juan Basso
895c10af7b Adjusted some types in @param, @return and @var. 2011-07-31 22:57:17 -04:00
Juan Basso
2a50a1ea99 Included @var in API that was missing. 2011-07-31 17:05:20 -04:00
Juan Basso
9bc3e567c1 Removed the @access and @static. 2011-07-30 20:56:48 -04:00
Juan Basso
db80fe27e1 Changed the visibility to protected. 2011-07-30 20:00:19 -04:00
Juan Basso
e4a1816557 Changed the signature of methods to avoid strict messages. 2011-07-30 19:17:20 -04:00
Juan Basso
9e75de2f28 Fixed some API doc in core and utility folders. 2011-07-28 23:33:17 -04:00
Juan Basso
a0ee8b49fe Fixed some API doc in console. 2011-07-28 22:05:29 -04:00
Jose Lorenzo Rodriguez
cfd2d9e00b Updating all @package annotations in doc blocks 2011-07-26 01:46:14 -04:30
mark_story
173e043eaf Fixing more failing tests caused by requestAction
and changes in Controller::__construct.
2011-07-22 20:29:44 -04:00
Jose Lorenzo Rodriguez
108505a6a0 Merge branch '2.0-form-helper' into 2.0 2011-07-16 17:32:07 -04:30
Jose Lorenzo Rodriguez
c6c1bf110d Fixing caching of class loading in App class, this was broken after a recent refactoring
Additionally a new property $bootstrapping is added to App, this is set during the bootstrap process to indicate that classes loaded before the caching is initialized should not trigger the cache write routine.
Performance++
2011-07-15 20:44:39 -04:30
Jose Lorenzo Rodriguez
a02db65fd1 Removing persist object feature, it was problematic an incomplete 2011-07-15 18:30:03 -04:30
Jose Lorenzo Rodriguez
8a6d97dfa7 Fixing loading of default options in CakePlugin::loadAll(), fixes #1737 2011-07-15 01:05:53 -04:30
Jose Lorenzo Rodriguez
f8ab1d3c73 Adding App::location() method to be able to obtain the defined path for a class 2011-07-12 00:38:50 -04:30
Leonid Mamchenkov
a1f47a803a Added paths for Controller/Component/Auth (ticket #1757) 2011-06-22 16:28:39 +03:00
Juan Basso
1c7d54eacc Updated the paths from comments. 2011-06-19 20:28:40 -04:00
Maggion Emmanuel
21ba5a856f Fixing documentation 2011-06-05 02:59:54 -07:00
ADmad
6c8b7fd878 Fixing locales lookup folder name. Closes #1744 2011-06-05 02:46:02 +05:30
mark_story
2650bd4639 Adding missing import that causes a fatal error when a deep
value is written to Configure early on.
Fixes #1753
2011-06-02 21:05:10 -04:00
Juan Basso
192812ee7f Updating the copyright to 2011. 2011-05-30 22:32:43 -04:00
ADmad
4c042ae133 Adding proper visibility keywords for class functions 2011-05-29 03:31:34 +05:30
Ceeram
266058e67a Moving the sort to also sort plugin objects, sorting in test removed 2011-05-26 19:33:36 +02:00
Ceeram
cea4e4e98e Sort objects before storing 2011-05-26 19:16:17 +02:00
Ceeram
5f97292648 Change case of Controller::$plugin, fixing missing plugin exceptions, tests updated. Also removing no longer needed camelize() calls 2011-05-26 15:31:40 +02:00
Jose Lorenzo Rodriguez
a05607856a Merge branch '2.0' of github.com:cakephp/cakephp into 2.0 2011-05-23 11:05:33 -04:30
Jose Lorenzo Rodriguez
1e7bf963c3 Removing unused function App::setObjects() 2011-05-23 11:03:11 -04:30
Ceeram
37fcfb9c86 reset objects when using App::build() with App::RESET 2011-05-23 11:34:13 +02:00
Jose Lorenzo Rodriguez
8d52907be7 Merge remote-tracking branch 'origin/2.0' into 2.0 2011-05-22 21:55:07 -04:30
Jose Lorenzo Rodriguez
5b8865a3a7 Making plugin routes load after app routes, closes #1722 2011-05-22 21:50:56 -04:30
mark_story
68482be3f1 Updating path to match the one found in the repository. 2011-05-22 22:04:08 -04:00
mark_story
85752e21c1 Removing undefined variable use.
Making the plugin path match the old plugins directory.
2011-05-22 22:04:08 -04:00
AD7six
d63b4df10c ensure consistent order for loaded function
Fixes the test case
2011-05-17 00:01:20 +02:00
AD7six
8e27cf992f correct a few missing constant replacements 2011-05-15 18:49:38 +02:00
AD7six
0cb70ae3bb remove CONFIGS constant 2011-05-15 18:34:52 +02:00
AD7six
afa8f6b441 remove LIBS constant
libs always means the Cake lib - so use the CAKE constant
2011-05-15 18:29:52 +02:00
Jose Lorenzo Rodriguez
6713bb154e Making themes also CamelCased 2011-05-15 00:09:32 -04:30
Jose Lorenzo Rodriguez
eea981940e Replacing config string in favor of Config 2011-05-13 03:36:45 -04:30
Jose Lorenzo Rodriguez
ded3cb4826 Renaming more folders 2011-05-13 02:31:33 -04:30
Jose Lorenzo Rodriguez
54eb934892 Fixing plugin related tests in Core package 2011-05-10 00:46:24 -04:30
Jose Lorenzo Rodriguez
2fab0b0e1c Improving CakePlugin::loaded() to accept a plugin name as first parameter 2011-05-08 23:19:00 -04:30
Jose Lorenzo Rodriguez
77788a965d Merge remote-tracking branch 'origin/2.0' into 2.0-plugin-loader
Conflicts:
	lib/Cake/tests/test_app/plugins/TestPlugin/Model/test_plugin_post.php
	lib/Cake/tests/test_app/plugins/test_plugin/Model/TestPluginPost.php
	lib/Cake/tests/test_app/plugins/test_plugin/Model/test_plugin_post.php
2011-05-08 22:08:31 -04:30
Jose Lorenzo Rodriguez
0573037f2c Migrating all View tests to the new plugin loader 2011-05-06 01:07:59 -04:30
Jose Lorenzo Rodriguez
f18b9aae7b Unloading all plugins with App::build() and $reset parameter is true 2011-05-06 01:05:33 -04:30
Jose Lorenzo Rodriguez
27a134de4f Implementing CakePlugin::loadAll() 2011-05-06 00:53:30 -04:30
ADmad
7fc5e8f810 Fixing typo 2011-05-03 01:01:33 +05:30
ADmad
1cb0e413be Enhancing App::build() to allow appending paths. Closes #1680 2011-05-01 20:54:52 +05:30
ADmad
75437b45d9 Fixed error where App::import() failed to load new class types added in 2.0. Also fixed couple of test cases. 2011-05-01 03:19:44 +05:30
Jose Lorenzo Rodriguez
f6a5df913a Moving test plugins to the new naming convention> Now plugin names should be camel cased 2011-04-29 12:49:46 -04:30
evilbloodydemon
df57b15f89 Removed undefined variable in App::core, made test pass on Windows.
Signed-off-by: mark_story <mark@mark-story.com>
2011-04-26 22:18:51 -04:00
Jose Lorenzo Rodriguez
4f1a6baf87 Fixing some errors in the new plugin loader and adding some tests 2011-04-26 00:56:19 -04:30
Jose Lorenzo Rodriguez
8053436b35 Fixing some parse errors 2011-04-25 22:42:33 -04:30
Jose Lorenzo Rodriguez
64db00706e Merge remote branch 'origin/2.0' into 2.0-plugin-loader 2011-04-23 23:25:31 -04:30
evilbloodydemon
b6c4b8abb5 Unused variables in Core removed 2011-04-23 00:02:05 +04:00
Jose Lorenzo Rodriguez
495611b313 Fixing location of shared plugins folder 2011-04-22 15:14:37 -04:30
Jose Lorenzo Rodriguez
8dc675335a Small refactoring, and adding some App::uses() to avoid problems 2011-04-21 17:56:03 -04:30
Jose Lorenzo Rodriguez
c504535980 Stating to implement a CakePlugin class to allow the inclusion of bootraping files for plugins 2011-04-17 01:37:31 -04:30
Jose Lorenzo Rodriguez
000e05b468 Merge remote-tracking branch 'origin/2.0' into 2.0-class-loading
Conflicts:
	cake/libs/view/helpers/js.php
	cake/tests/lib/templates/missing_conenction.php
	cake/tests/lib/templates/missing_connection.php
	lib/Cake/Model/ConnectionManager.php
	lib/Cake/TestSuite/templates/missing_conenction.php
	lib/Cake/View/Helper/FormHelper.php
	lib/Cake/tests/Case/Core/ConfigureTest.php
2011-04-11 22:48:08 -04:30
Jose Lorenzo Rodriguez
6737380deb Partial migration of folders to camelcase in app 2011-03-22 00:46:51 -04:30
AD7six
32df3156a7 consolidate cake_error and cake_developer to simply "cake_dev"
it's a lot easier for adding new translations to think:
	is it for the end user?
		use 'cake' as the domain
	is it for the developer
		use 'cake_dev' as the domain
	is it for the console
		use 'cake_console' as the domain

also neatly avoids the "this message is an error, and it's in
cake_developer, why?" - question (because cake_error was intended for
anything which is used in trigger_error/exceptions, not a variable named
$error
2011-03-20 16:38:31 +01:00
AD7six
b19ca3c95e using the domain cake_error for messages intended for the developer 2011-03-19 18:09:58 +01:00
AD7six
b90939f659 documentation correction 2011-03-19 17:51:46 +01:00
AD7six
39c7d03319 Merge branch '2.0-class-loading' into 2.0-translations
Conflicts:
	lib/Cake/Console/Command/Task/ControllerTask.php
	lib/Cake/Console/Command/Task/ProjectTask.php
	lib/Cake/Core/Configure.php
	lib/Cake/View/pages/home.ctp
2011-03-16 12:29:39 +01:00
Jose Lorenzo Rodriguez
3f7928fccc Changing paths againg form datasources sub packages,
Updating database.php.default file
Fixing view generation task
2011-03-16 00:14:37 -04:00
Jose Lorenzo Rodriguez
bd2bd4ba22 Udating skel directory, doc blocs and the location of the Console package 2011-03-15 21:53:42 -04:00
Jose Lorenzo Rodriguez
0cd51de827 Merge remote-tracking branch 'origin/2.0' into 2.0-class-loading 2011-03-12 23:49:02 -04:30
AD7six
d264d0feb5 changes in the core dir 2011-03-12 20:00:15 +01:00
Jose Lorenzo Rodriguez
ecc6a22b3b Adding tests for loading classes from the libs folder 2011-03-12 01:56:34 -04:30
Jose Lorenzo Rodriguez
fd84b1494d Documenting remaining methods in App class 2011-03-12 01:15:56 -04:30
Jose Lorenzo Rodriguez
d890896777 Updating Lib package usage in App::load() 2011-03-12 00:40:43 -04:30