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
mark_story
eefde54d56
Updating path constant in CodeCoverageManager to better support
...
custom installs.
Fixes #1831
2011-07-19 20:34:44 -04:00
mark_story
3cf4dd8b6c
Reversing the order fixtures are truncated in order to remove
...
data in a way that better supports foreign keys.
Fixes #1837
2011-07-19 20:25:30 -04:00
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
mark_story
ff5ac73988
Removing redundant/always true conditions in Controller::__mergeVars.
...
Fixes #1830
2011-07-16 22:44:57 -04:00
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