mark_story
cf26a8e430
Initial port of Router::getArgs() to CakeRoute.
2011-03-03 06:11:41 -05:00
mark_story
155db76825
Removing junk.
2011-03-03 05:50:58 -05:00
mark_story
b70a512470
Moving Router::$named to be protected, and adding an accessor method. This will help with later refactoring.
2011-03-02 22:08:30 -05:00
mark_story
5e3cd74b03
Replacing request->here with request->here(). Saves a call to Router::normalize() in a few places.
2011-03-02 22:04:51 -05:00
mark_story
a6abd61f3f
Removing Dispatcher::$here, it wasn't really used outside of a cached() which had a param that it just ignored. Making Dispatcher::cached() pay attention to its parameter.
...
Updating tests.
2011-03-02 21:52:25 -05:00
mark_story
af16b13e5f
Fixing issues with double base dir in FormHelper::create(). Fixes #1568
2011-03-02 21:47:11 -05:00
mark_story
2145fd8078
Adding CakeRequest::here() for getting complete 'here' values including query string parameters. $request->here does not include query string params.
...
Adding test cases.
2011-03-02 21:46:28 -05:00
mark_story
7526d017f0
Clarifying what tld means.
2011-03-02 21:00:53 -05:00
mark_story
197c9bf912
Making empty string create empty submit buttons. This applies to both Form->submit() and Form->end(). Tests added. Fixes #1569
2011-03-02 20:27:57 -05:00
mark_story
7891143cd9
Removing repetitive strtoupper call.
2011-03-02 05:46:27 -05:00
mark_story
e3841955dc
Merge branch '2.0' of github.com:cakephp/cakephp into 2.0
2011-03-01 22:23:57 -05:00
mark_story
3ea8c2246a
Merge branch '1.3' into merger
...
Conflicts:
cake/console/cake.php
cake/dispatcher.php
cake/libs/controller/components/cookie.php
cake/libs/view/helper.php
cake/libs/view/helpers/ajax.php
cake/tests/cases/dispatcher.test.php
cake/tests/cases/libs/model/model_validation.test.php
cake/tests/cases/libs/view/helpers/ajax.test.php
cake/tests/lib/cake_test_fixture.php
2011-03-01 22:21:44 -05:00
Jeremy Harris
b138c84df3
Merge remote branch 'upstream/2.0' into 2.0
2011-03-01 19:02:34 -08:00
Jeremy Harris
06f9fc0fc9
Made form post to the current location by default. Fixes #1418
2011-03-01 17:31:02 -08:00
Jeremy Harris
2977448891
Added more options to NumberHelper::currency() to allow for better flexibility in defining formats. Fixes #1267
2011-03-01 17:14:15 -08:00
Ceeram
e9011badb5
Ensure both node() and afterSave() use ->name
...
Fixes #1564
2011-02-28 21:43:33 -05:00
Ceeram
dbd8199dad
replaced use of model->alias by model->name, where these might cause issues, refers #346
2011-02-27 16:18:32 +01:00
Ceeram
f1f586480c
Implementing Aclbehavior to be set as both requester as controlled, tests updated, fixes #346
2011-02-27 16:08:52 +01:00
ADmad
d999650d5e
MediaView now forces download of unknown file types. Closes #140
2011-02-27 06:31:15 +05:30
Juan Basso
2414ad8c8f
Merge branch '2.0-models' into 2.0
2011-02-26 19:10:07 -03:00
Juan Basso
0e30042f82
Removed the ReflectionClass when filtering results. The Reflection just help in big data.
2011-02-26 18:24:05 -03:00
Juan Basso
d7991aac23
Optimizations related with hasMany and HABTM assoc.
2011-02-26 17:43:46 -03:00
mark_story
a52756d550
Fixing issue with empty delimeter notice error when installed at the webroot using url rewriting.
2011-02-26 15:37:28 -05:00
mark_story
72245ebb0c
Making debug() not html escape in cli contexts.
2011-02-26 15:37:28 -05:00
Juan Basso
f9b5d419cd
Fixed wrong attribute name.
2011-02-26 14:06:50 -03:00
Juan Basso
ef9dfe7f26
Some optimizations in queryAssociation.
2011-02-26 14:03:17 -03:00
Juan Basso
cbe8d9ca76
Removed unused var.
2011-02-26 13:45:06 -03:00
Juan Basso
731cc7bb0c
Reverted the change to quote the table name.
2011-02-26 12:39:33 -03:00
Juan Basso
63d700a9d6
Refactored the filterResults again. Now this method not call the callback afterFind when model is Model.
2011-02-26 05:23:59 -03:00
Juan Basso
34b4ff9204
More changes in read.
2011-02-26 04:31:13 -03:00
Juan Basso
ef6632a5ed
Optimizations in generateAssociationQuery and fullTableName.
2011-02-26 04:17:42 -03:00
Juan Basso
164c2a59f3
Optimizating scrubQueryData.
2011-02-25 23:43:15 -03:00
Juan Basso
7fc3eead9c
Fixed error in update statement.
2011-02-25 22:14:52 -03:00
Juan Basso
4828e16762
Updating tests to use new find notation.
2011-02-25 22:04:48 -03:00
Juan Basso
7efe15393d
Fixed error caused by code optimizations.
2011-02-25 21:11:25 -03:00
mark_story
b80955c9fe
Adding newlines to the builtin email template. Fixes issues with long lines. Refs #857
2011-02-25 18:50:50 -05:00
Juan Basso
8c7b0f48d8
Checking if has item before fetch virtual fields, avoiding call a function with result (can be large). It save a good time.
2011-02-25 19:55:34 -03:00
Juan Basso
d095f5fe8d
Optimizations in filterResults.
2011-02-25 19:15:40 -03:00
Juan Basso
fea2b5798c
Minor optimizations in DboMysql.
2011-02-25 17:22:15 -03:00
Juan Basso
73b3b65a53
Changed to filterResults be protected instead of private.
2011-02-25 13:26:14 -03:00
Juan Basso
728d9b2a26
Removed the unused var.
2011-02-25 13:05:08 -03:00
Juan Basso
9baeaf8338
Some code optimizations.
2011-02-25 13:01:32 -03:00
Juan Basso
765c094cf1
Extra protection.
2011-02-25 12:54:58 -03:00
Juan Basso
a091302c92
Removed the isInterfaceSupported method. It not make sense in PHP5.
2011-02-25 12:54:57 -03:00
Juan Basso
05fc10e717
Removed the Datasource::sources method that is used to PHP4. Changed the isInterfaceSupported to be case sensitive (PHP4 restriction).
2011-02-25 12:54:55 -03:00
Juan Basso
6f5be8ff95
Minor changes.
2011-02-25 12:54:53 -03:00
Juan Basso
7f58d2628f
Removing return from constructor.
2011-02-25 12:54:51 -03:00
Juan Basso
9e8fc96bf8
Trimming whitespaces.
2011-02-25 12:54:50 -03:00
Juan Basso
5ab5197090
Less one var.
2011-02-25 12:54:48 -03:00
Juan Basso
6e14fa8949
Moving attributes from Datasource to DboDataSource.
2011-02-25 12:54:46 -03:00
Juan Basso
f15544018f
Minor optimizations in find.
2011-02-25 12:54:44 -03:00
Juan Basso
5bfa0867ef
Removed the support to notation of 1.2.
2011-02-25 12:54:43 -03:00
Juan Basso
31679c3efa
Changed the scope of methods in Model.
2011-02-25 12:54:41 -03:00
mark_story
e05c6cd83f
Fixing issue where actions starting with a prefix but not followed by an _ would get mangled when going through router::url().
...
Fixes #1556
2011-02-24 16:43:13 -05:00
José Lorenzo Rodríguez
19bcec599b
Merge branch '2.0' of github.com:cakephp/cakephp into 2.0
...
Conflicts:
cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php
2011-02-24 01:38:11 -04:30
José Lorenzo Rodríguez
69b70249da
Fixing more issues with database prefixes
2011-02-24 01:31:03 -04:30
José Lorenzo Rodríguez
ea7f0bf900
Fixing some tests to make them run with table prefixes
2011-02-23 23:44:48 -04:30
mark_story
139d6b3133
Changing the checks surrounding dataExpression to use empty() instead of isset() so unexpected things don't happen if you ever use dataExpression = false. Fixes #1521
2011-02-23 21:15:39 -05:00
mark_story
9367a10522
Merge branch '1.3' of github.com:cakephp/cakephp into 1.3
2011-02-23 21:07:10 -05:00
mark_story
98df3e331f
Fixing DboMysql not quoting database names in listSources.
...
Updated tests.
Fixes #1552
2011-02-23 11:36:41 -05:00
mark_story
30c7b954ec
Fixing greedy regexp in project task.
2011-02-23 11:26:43 -05:00
José Lorenzo Rodríguez
00f3aaf615
Fixing some issues in ACL related classes when using database prefixes
2011-02-23 01:22:23 -04:30
José Lorenzo Rodríguez
8f62d01701
Fixing lazy loading of database conenction when using prefixes and performing delete operations
2011-02-23 00:51:48 -04:30
José Lorenzo Rodríguez
fc060b5e9c
Starting to lazy load database conenctions again, model read tests fixed
2011-02-23 00:43:56 -04:30
José Lorenzo Rodríguez
a79877d11a
Revert "Making Model::setSource() eager again to fix issues where joined models"
...
This reverts commit d20f68c44e
.
2011-02-22 23:49:02 -04:30
Juan Basso
52163b4b05
Allowing strings in cc and bcc. Fixes #1553 .
2011-02-22 21:23:15 -03:00
mark_story
d4cdc118d2
Fixing notice error that happens when you run tests for plugins.
2011-02-22 08:41:36 -05:00
mark_story
6426b7ec04
Fixing issues with / routes, as PATH_INFO doesn't exist.
...
Changing foreach loop for if elseif blocks, and removing use of env(). The values we want will never be anywhere else by _SERVER, so don't incur extra overhead looking places it won't be.
Added tests.
2011-02-21 22:30:01 -05:00
Juan Basso
21a9904a71
Adding a protection to cake console be executed in driver root (windows). Fixes #1408 .
2011-02-21 17:55:15 -03:00
Juan Basso
c5f291958b
Adding extra protection to cake console be executed in driver root (windows).
2011-02-21 17:36:32 -03:00
ADmad
1f2afd8d3f
Removing deprecated function TimeHelper::relativeTime() which was simply an alias for TimeHelper::timeAgoInWords()
2011-02-22 01:27:46 +05:30
ADmad
709ed7675b
Fixing typo in PHPUnit include file path
2011-02-22 01:21:26 +05:30
mark_story
0b75906649
Adding docs about the ability to set settings in the helper as well.
2011-02-21 14:08:29 -05:00
mark_story
c64dd9d352
Adding the ability to pass additional information into the rendering of flash messages. Allows you to keep keep code DRY by moving repeated settings into the view.
...
Added tests.
Fixes #792
2011-02-21 14:08:29 -05:00
Juan Basso
e1b3703c20
Adding a protection to cake console be executed in driver root (windows). Fixes #1408 .
2011-02-21 15:46:55 -03:00
mark_story
6338299e77
Merge branch 'clean-get' into 2.0
2011-02-21 12:47:41 -05:00
mark_story
1f9bbbce53
Pulling windows specific tests into a separate test method.
2011-02-21 10:48:34 -05:00
Victor Widell
d0b7d3355d
$this->data[$habtmKey] could be a string, meaning $this->data[$habtmKey][$habtmKey] would be the first character of that string. Probably not what you want.
...
Fixes #1549
Signed-off-by: mark_story <mark@mark-story.com>
2011-02-21 10:39:55 -05:00
mark_story
440a89051d
Fixing test that didn't fail as expected.
2011-02-20 22:33:10 -05:00
mark_story
d1821b3f9d
Removing $request->query[url]. This simulated value is also available at $request->url, and having it in the query array confuses things, as GET[url] no longer exists.
...
Fixing failing tests elsewhere in the framework.
2011-02-20 21:52:20 -05:00
mark_story
2190596764
Fixing htaccess file to not use GET params anymore.
2011-02-20 13:57:38 -05:00
mark_story
23bacfc0c7
Adding new checks, so missing favicons don't flood the error logs.
2011-02-20 13:29:19 -05:00
mark_story
8991095045
Removing references to GET['url'] & favicon, as there is no more GET[url].
2011-02-20 13:12:04 -05:00
mark_story
24935afff4
Removing remaining references to $_GET['url'].
2011-02-19 22:27:38 -05:00
mark_story
ea52f880fd
Removing useless property.
2011-02-19 22:26:44 -05:00
mark_story
630d0a9887
Removing redundant method.
2011-02-19 22:26:12 -05:00
mark_story
8cbd9fc361
Fixing viewClass name on Scaffold.
2011-02-19 22:21:58 -05:00
mark_story
633fcba4e8
Fixing viewClass name on Scaffold.
2011-02-19 22:21:38 -05:00
mark_story
24369cf04a
Removing GET param, and making CakeRequest use PATH_INFO and SCRIPT_NAME to determine base paths and request urls.
...
Updated tests. Removed test for base path injection, as PHP_SELF is no longer used to compute the base path, and users cannot influence SCRIPT_NAME.
2011-02-19 22:20:55 -05:00
mark_story
db00915dea
Removing complicated logic that does a reasonable amount of unnecessary work. Favouring $_SERVER['PATH_INFO'] over more complicated, logic. This may cause issues with IIS 5.x, but its a very old release now.
...
Updating tests to match values that come out of IIS7.
2011-02-19 18:20:54 -05:00
mark_story
52467a7e18
Moving assignment of base into _base().
2011-02-19 13:17:05 -05:00
mark_story
79ec16364a
Refactoring tests to use a generator.
2011-02-19 12:36:27 -05:00
mark_story
1ee6c1ee45
Removing some no longer required method calls.
2011-02-19 11:30:09 -05:00
mark_story
c15d0132f3
Adding more environment detection tests.
2011-02-19 10:00:34 -05:00
mark_story
63f07d3f0f
Making Authorize and Authenticate objects have constructors like other components.
...
Adding ComponentCollection as a argument for the constructor, this unifies the two types of objects and makes them consistent with other components. It also allows authenticate/authorize objects to access other components, thanks to hiromichan for the idea. Tests updated.
2011-02-17 23:17:07 -05:00
mark_story
0cb5394d0b
Adding static variable to allow changing which get param cake uses. Refs #1483
2011-02-17 22:15:16 -05:00
mark_story
5c4854b897
Adding omitted return that would prevent users from reaching the login page after being redirected to it. Tests added. Fixes #1542
2011-02-17 07:44:41 -05:00
0x20h
0e7f2efdb1
Fixing notice errors caused by accessing headers in po files that
...
don't exist. Fixes #1515
Signed-off-by: mark_story <mark@mark-story.com>
2011-02-16 22:13:51 -05:00
mark_story
ca3e606ec8
Fixing failing tests caused by me forgetting to run tests in [ 7032729651
]
2011-02-16 22:08:20 -05:00
mark_story
a95d4acf09
Removing unused code, and adding a realpath() to document_root, so symlinks work a bit better.
2011-02-16 21:14:32 -05:00