Commit graph

1097 commits

Author SHA1 Message Date
Mark Story
8149e4f049 Removing unused property.
Removing broken dispatch pass-though method.
2011-07-28 13:12:18 -04:00
Majna
29e4cad99e Fix for lowercased schema folder when baking plugin skel 2011-07-28 18:57:10 +02:00
Dean Sofer
2ef17ec0a7 Additional tweak to FormHelper::input(), make float types use the number input 2011-07-27 15:15:31 -07:00
Jose Lorenzo Rodriguez
25682db434 Removing duplicate directory separator when looking for locale search paths, closes #1854 2011-07-27 17:41:25 -04:30
Jose Lorenzo Rodriguez
402934fa4d Updating version numbers to 2.0.0-beta 2011-07-26 13:20:27 -04:30
Jose Lorenzo Rodriguez
8c60e01235 Reverting change done to validation that was duplicating the validates() process for the main model, returning the correct value in validateAssociated() instead 2011-07-26 10:05:16 -04:30
Dean Sofer
804e88b092 Added test for HTML5 FormHelper::input() integer to number in $map 2011-07-26 02:19:41 -07:00
Dean Sofer
333f36585b Added 'integer' => 'number' for HTML5
Located in $map in the `FormHelper::input()` method. This means that if a field input is related to an integer column in the database, it will show up as a number input in the HTML5 form (where supported) yet gracefully degrade.
2011-07-26 01:39:56 -07:00
Jose Lorenzo Rodriguez
cfd2d9e00b Updating all @package annotations in doc blocks 2011-07-26 01:46:14 -04:30
Jose Lorenzo Rodriguez
21ff9caac7 Solving scope problem after clearing up variables in the default routes file 2011-07-25 23:58:08 -04:30
Jose Lorenzo Rodriguez
959a9689b3 Merge remote-tracking branch 'origin/2.0-paginator-count' into 2.0 2011-07-25 23:29:04 -04:30
Jose Lorenzo Rodriguez
94f9ef63c6 Merge branch '2.0' of github.com:cakephp/cakephp into 2.0 2011-07-25 23:25:35 -04:30
Jose Lorenzo Rodriguez
1c7f181b9f Making saveAll with validate => only validate the current model data first 2011-07-25 23:23:26 -04:30
Mark Story
74e2cb1507 Updating doc blocks and @package strings for Console
classes.
2011-07-25 21:46:52 -04:00
Mark Story
f534ea0f08 Updating docs for Configure classes. 2011-07-25 21:46:23 -04:00
Mark Story
c35d52eba0 Cleaning up after route connection. 2011-07-25 20:51:32 -04:00
Jose Lorenzo Rodriguez
165dcf11b1 Merge remote-tracking branch 'origin/2.0-saveall' into 2.0 2011-07-25 19:22:17 -04:30
Jose Lorenzo Rodriguez
2b7888ec47 Reverting change done by previous merge 2011-07-25 14:58:51 -04:30
Jose Lorenzo Rodriguez
febf28f34b Merge remote-tracking branch 'origin/1.3' into 2.0
Conflicts:
	cake/console/templates/default/views/home.ctp
	cake/libs/controller/controller.php
	cake/libs/model/datasources/dbo/dbo_mysqli.php
	cake/libs/view/pages/home.ctp
	cake/tests/cases/libs/view/media.test.php
	cake/tests/lib/cake_test_case.php
	cake/tests/lib/code_coverage_manager.php
	cake/tests/test_app/views/pages/home.ctp
	lib/Cake/Cache/Engine/ApcEngine.php
	lib/Cake/Model/Datasource/Database/Mysql.php
	lib/Cake/View/Helper/FormHelper.php
2011-07-25 14:44:23 -04:30
Ceeram
b8daa99cac Splitting saveAll into separate save and validation methods for many rows and associated rows. Closes ticket #1157 2011-07-25 09:39:03 +02:00
Jose Lorenzo Rodriguez
8e6d018ac4 Merge branch '2.0' of github.com:cakephp/cakephp into 2.0 2011-07-24 14:12:38 -04:30
Jose Lorenzo Rodriguez
31efa022df Adding a backwards compatible check to ClassRegistry::init() so it is still able to return classes that are not instance of Model 2011-07-24 14:02:16 -04:30
Jose Lorenzo Rodriguez
d63dde0fde Ensuring the correct HtmlReporter class is used in the web test runner 2011-07-24 14:01:44 -04:30
Juan Basso
b8c00d5f56 Changed the paginator to do a count after the find. 2011-07-23 21:09:55 -04:00
mark_story
6fb3c72d49 Fixing issue where plugin models in $uses, would create
incorrect forms when create() is called with no arguments.
Fixes #1841
2011-07-23 14:49:39 -04:00
mark_story
3589a17321 Merge branch 'request-response' into 2.0 2011-07-23 14:23:06 -04:00
mark_story
63ea4ef99a Fixing missing fixture causing test failure. 2011-07-22 20:45:33 -04:00
Mark Story
ec3de84c4e Removing getResponse, its not used and it doesn't serve much purpose. 2011-07-22 20:29:45 -04:00
Mark Story
4101388069 Syncing skel directory with app/Config. 2011-07-22 20:29:45 -04:00
Mark Story
c8647b227a Moving plugin route loading to app/Config/routes.php
Its old position would end up with plugin routes being loaded
after the core fallback routes.
2011-07-22 20:29:45 -04:00
mark_story
c37c641b4a Fixing failing tests because of core routes not being loaded. 2011-07-22 20:29:45 -04:00
mark_story
16073b4e44 Fixing notice errors in Router.
Updating AuthComponent tests for changes in Router behavior.
2011-07-22 20:29:45 -04:00
mark_story
be98e0b962 Updating Folder tests for new file.
Converting assertIdentical to assertSame.
2011-07-22 20:29:45 -04:00
mark_story
f0819d364c Updating Dispatcher tests for changes in Router. 2011-07-22 20:29:45 -04:00
mark_story
cfb3e8a15b Moving default routes into a separate file.
Removing Router::defaults() as its not needed anymore.
Removing default routes from inside router.
Removing properties related to default routes.
Removing dead tests and updating tests.
2011-07-22 20:29:45 -04:00
mark_story
358d591e95 Making ApiShell test, which uses Controller pass. 2011-07-22 20:29:44 -04:00
mark_story
f28b42de2f Pulling construction of Scaffold into a method so its
easier to allow plugins/user classes to replace the core Scaffold class.
2011-07-22 20:29:44 -04:00
mark_story
b56931383c Adding tests. 2011-07-22 20:29:44 -04:00
mark_story
61ab769f1c Moving tests for private actions to ControllerTest. 2011-07-22 20:29:44 -04:00
mark_story
c25394278b Returning response objects from controllers wasn't working correctly. 2011-07-22 20:29:44 -04:00
mark_story
177cd39abb Moving private method detection into Controller.
This fixes an issue where potected methods would
not be called, and no exception would be raised.
2011-07-22 20:29:44 -04:00
mark_story
8bfc0a859d Reverting previous change that prevent entry into a special case. 2011-07-22 20:29:44 -04:00
mark_story
70744f3cb4 Fixing failing tests for Controller.
Adding a string cast for easier testing.
2011-07-22 20:29:44 -04:00
mark_story
b0749acbb6 Starting to change how Controller::render() and response
objects are handled.
2011-07-22 20:29:44 -04:00
mark_story
65d28f4c73 Fixing failing tests for ControllerTestCase. 2011-07-22 20:29:44 -04:00
mark_story
04147caca8 Updating ExceptionRenderer and CakeErrorHandler for Controller changes. 2011-07-22 20:29:44 -04:00
mark_story
173e043eaf Fixing more failing tests caused by requestAction
and changes in Controller::__construct.
2011-07-22 20:29:44 -04:00
mark_story
2141b494cd Adding charset as it was previously omitted. 2011-07-22 20:29:44 -04:00
mark_story
fc08784c22 Making Controller tests pass. 2011-07-22 20:29:43 -04:00
mark_story
ec40ce6aad Updating index.php and skel dir for response change. 2011-07-22 20:29:43 -04:00
mark_story
5240edeb82 Refactoring tests to better use PHPUnit's features
Removing non-functional cruft.
2011-07-22 20:29:43 -04:00
mark_story
9641bcc8df Modifying Dispatcher and its test cases to accept a CakeResponse as part of its
arguments.
2011-07-22 20:29:43 -04:00
Jose Lorenzo Rodriguez
420a2f56df Merge branch '2.0-dbo-performance' into 2.0 2011-07-20 22:15:45 -04:30
Ceeram
4ae9058012 Merge branch '2.0' of github.com:cakephp/cakephp into 2.0 2011-07-19 10:57:41 +02:00
Ceeram
f94c50dc5d added ModelDeleteTest to AllModelTest 2011-07-19 10:57:31 +02:00
Mark Story
011d9b4d37 Updating compatibility assertions so they correctly reverse arguments
for SimpleTest wrappers.
Reformated doc blocks.
Fixes #1827
2011-07-18 23:17:20 -04:00
Juan Basso
a2e7c0febe Optimization in FormHelper::postLink(). 2011-07-18 20:33:45 -04:00
Jose Lorenzo Rodriguez
50d4330487 Ensuring uniqueness of method cache keys, all tests passing now 2011-07-17 23:45:22 -04:30
Jose Lorenzo Rodriguez
08be8300ee Merge branch '2.0' into 2.0-dbo-performance 2011-07-17 23:22:58 -04:30
Jose Lorenzo Rodriguez
222df2c315 Removing unneeded assert that fails when run in the all test suite 2011-07-17 23:12:51 -04:30
Jose Lorenzo Rodriguez
3594f7aa88 Adding condition inside Controller::render() to avoid storing in the request an empty model definition 2011-07-17 22:54:11 -04:30
Jose Lorenzo Rodriguez
4c8f5ce5be Bringing up to date the ModelTask test case after adding the new validation method 2011-07-17 22:46:56 -04:30
Jose Lorenzo Rodriguez
03dac31930 Using the static property instead 2011-07-17 22:41:12 -04:30
Jose Lorenzo Rodriguez
a786f4b1c6 Making DboSource::$methodCache a static variable to be able to share the cache between multiple instances of the same class 2011-07-17 22:26:21 -04:30
Jose Lorenzo Rodriguez
58282c3934 Micro optimization on Mysql source 2011-07-17 19:23:15 -04:30
Jose Lorenzo Rodriguez
762ebd4b93 Implementing a persitent method cache for DboSource, using a stronger hashing algorithm to ensure unique keys 2011-07-17 19:08:23 -04:30
Jose Lorenzo Rodriguez
ca0a7e4271 Removing method cache from DboSource::conditions() this was consuming too much memory and bringing little to no performance increase 2011-07-17 17:44:12 -04:30
Jose Lorenzo Rodriguez
b603232aee Removing redundant call to DboSource::fields(), the fields come already quoted from DboSource::read() 2011-07-17 17:42:47 -04:30
Jose Lorenzo Rodriguez
ad28228495 Removing unused parameters of tagIsInvalid() 2011-07-16 17:36:47 -04:30
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
ca0dccb1e7 Merge branch '2.0' of github.com:cakephp/cakephp into 2.0 2011-07-15 18:30:55 -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
d5ce09cd96 Restoring the validationErrors property in FormHelper, it will be checked first before the validation errors in the model 2011-07-15 18:24:27 -04:30
José Lorenzo Rodríguez
11f4d1c0e9 Fixing whitespace in CakeSchema 2011-07-15 14:49:33 -07:00
José Lorenzo Rodríguez
7596fcf45a Merge pull request #153 from ajibarra/e4c1f28d849c6a60c369265a502315260babe80b
Preventing AppModel to be inspected inside CakeSchema
2011-07-15 14:48:01 -07:00
José Lorenzo Rodríguez
57a8c108a6 Merge pull request #147 from burzum/feature/2.0-return-query
Feature/2.0 return query
2011-07-15 14:10:08 -07:00
Alejandro Ibarra
e4c1f28d84 Included validation to skip AppModel on CakeSchema->readSchema because it tries to find 'app_models' table. Added testSchemaReadWithAppModel test 2011-07-15 15:18:38 -04:30
Jose Lorenzo Rodriguez
fb264d9671 Adding a datetime validation method to the Validation class, closes #1021 2011-07-15 01:20:37 -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
84aba009e7 Documentation and code cleaning, this commit means that the FormHelper is now fully able to locate models even though lazy loading is used in the controller, closes #1690 2011-07-14 20:35:44 -04:30
Jose Lorenzo Rodriguez
b16a5f24db Making sure the default model for controller is added to the request models parameter in render() 2011-07-14 18:06:16 -04:30
Jose Lorenzo Rodriguez
37231b4ce6 Updating Controller test case 2011-07-14 17:38:02 -04:30
Jose Lorenzo Rodriguez
ac2538b108 REmoving call to deprecated method in PHPUnit 2011-07-14 17:28:53 -04:30
Jose Lorenzo Rodriguez
0c79ad88a3 Cleaning up the code and adding tests for new features 2011-07-14 17:26:55 -04:30
Jose Lorenzo Rodriguez
dcd8811771 Fixing typo 2011-07-14 16:05:23 -04:30
Jose Lorenzo Rodriguez
0228611969 Fixing remaining failing tests on FormHelperTest case 2011-07-14 13:56:31 -04:30
Jose Lorenzo Rodriguez
a5851e9597 Updating test to reflect that models passed as a request parameter are now in an associative array 2011-07-14 13:53:27 -04:30
Jose Lorenzo Rodriguez
4ed46cf330 Updating more tests on FormHelperTest case 2011-07-14 13:53:10 -04:30
Jose Lorenzo Rodriguez
ba012ed950 Adding a special case for not trying to instantiate a Model called Model in FormHelper 2011-07-14 11:13:51 -04:30
Jose Lorenzo Rodriguez
9304f3420b Currently the FormHelper fails if the Model supplied is 'Model', perhaps we need to add a special case for this 2011-07-14 11:05:41 -04:30
Jose Lorenzo Rodriguez
ef5650c034 Fixing ClassRegistry that was incorrectly checking class inheritance
Fixing Model class that was incorrectly sending model names to be instantiated
Fixing more FormHelper tests
2011-07-14 01:30:52 -04:30
Jose Lorenzo Rodriguez
1941be6a76 Updating FormHelper tests 2011-07-14 01:03:29 -04:30
Jose Lorenzo Rodriguez
e8efc67d3d Ensuring that classes returned by ClassRegistry::init() are model instances 2011-07-14 01:02:50 -04:30
Jose Lorenzo Rodriguez
60b44e074a Cleaning up the ClassRegistry::init() method, removing the use of the second parameter as it always accepted but one value
The second parameter is now $strict, meaning that if the model class is not found it will not try to create an AppModel instance
2011-07-14 00:06:01 -04:30
Jose Lorenzo Rodriguez
d54e8cd82f Starting to update tests after removing the validationErrors property in Helper 2011-07-13 23:51:23 -04:30
Jose Lorenzo Rodriguez
39dadf58db Refactoring how model information is extracted in the FormHelper, it is done now in a lazy manner and hopefully using less memory 2011-07-13 23:49:50 -04:30
Jose Lorenzo Rodriguez
22f02373c9 Moving tagIsInvalid from Helper back to FormHelper, as it is a better home for it 2011-07-13 23:49:01 -04:30
Jose Lorenzo Rodriguez
567ac0209c Refactoring how models are passed as a request parameter to the view, now the full plugin and model name will be passed on 2011-07-13 23:47:45 -04:30
Ceeram
a025cb2e01 Adding option to ProjectTask, for setting CAKE_CORE_INCLUDE_PATH. Tests added. 2011-07-13 23:54:24 +02:00