mark_story
c6f783ebfe
Fixing issues with CakeTestCase test case and debug = 3. Fixes #189
2009-10-20 22:19:32 -04:00
mark_story
02df92a3a3
Merge branch 'datasource-enabled' into 1.2
2009-10-20 16:19:45 -04:00
mark_story
6913dd4bae
Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2
2009-10-20 16:18:15 -04:00
mark_story
072e1efc13
Adding Datasource::enabled()
...
Allows for checking a datasource's ability to be used before attempting to connect it.
Added enabled() to all the core dbo's.
Fixes whitescreen when trying to use a non installed database driver.
Fixes #131
2009-10-20 16:11:31 -04:00
renan.saddam
a15289fba8
Saving few Router::normalize() calls, will may increase performance. Fixes #179 .
2009-10-20 16:16:31 -02:00
mark_story
fa6b1b1a20
Changing FormHelper::button() to actually create <button> elements instead of input elements. Test cases added.
2009-10-19 23:57:23 -04:00
mark_story
08f07a9aa4
Changing FormHelper::submit() to be able to create all types of submit buttons. Use 'type' option to create reset or button type inputs.
...
Test cases added.
2009-10-19 23:44:50 -04:00
mark_story
b9e28d1908
Updating doc blocks.
2009-10-19 23:34:34 -04:00
mark_story
34fb1cc683
Refactoring out common code blocks into a separate method.
2009-10-19 21:58:37 -04:00
mark_story
0a79822b9d
Expanding some doc blocks for DataSource.
2009-10-19 21:09:47 -04:00
mark_story
3922f136da
Making DboMysqlTest pass when a connection with a prefix is used. Fixes #185
2009-10-19 20:54:02 -04:00
mark_story
52180d50c5
Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2
2009-10-19 16:40:45 -04:00
mark_story
79e96e5aef
Updating localePaths path. Fixes #184
2009-10-19 16:36:44 -04:00
jperras
ae342c6f2c
Fixing skip in previous commit: if skip condition evaluates to true, to prevent a fatal error from being produced.
2009-10-19 13:22:14 -04:00
jperras
daafac8a64
Merge branch '1.2' of code.cakephp.org:cakephp into 1.2
2009-10-19 12:51:32 -04:00
jperras
7ff3fcc4c4
Adding skip for non-existence of DateTimeZone class in time helper tests.
2009-10-19 12:51:06 -04:00
predominant
ae76c44945
Update Default layout link escaping.
2009-10-19 21:34:53 +11:00
mark_story
2675bbcd53
Fixing FormHelper::__selectOptions incorrectly selecting options due to type juggling. Fixes #167
2009-10-18 22:05:17 -04:00
mark_story
057e3ff0aa
Removing $showEmpty parameter from all select based widgets.
...
Use attributes[empty] instead. This change unifies the api between form->input() and other widget methods.
Tests and docblocks updated.
2009-10-17 01:29:16 -04:00
mark_story
610a281030
Updating doc blocks.
2009-10-17 00:55:17 -04:00
mark_story
f1c9b33f2b
Fixing typos.
2009-10-16 23:19:46 -04:00
mark_story
a46ebc933b
Removing redundant function calls.
2009-10-16 23:16:46 -04:00
mark_story
0dee625215
Removing escape parameter from para()
...
Renaming parameters.
2009-10-16 23:14:42 -04:00
mark_story
3c1d134685
Updating doc blocks.
...
Renaming inline param for style() to oneline.
Removing escape parameters from div() and tag()
2009-10-16 23:11:13 -04:00
mark_story
8e2f58d086
Removing HtmlHelper::css() inline parameter. Use $options[inline] instead.
...
Adding tests for inline = false script and css generation.
2009-10-16 23:00:31 -04:00
mark_story
fc4df2bb64
Updating documentation.
2009-10-16 22:53:38 -04:00
mark_story
6bb53a5c9d
Removing HtmlHelper::link()'s escapeTitle parameter. $options[escape] now controls escaping of attributes and title text.
2009-10-16 22:49:44 -04:00
mark_story
7344c0ce7d
Removing $inline parameter from HtmlHelper::meta() inline is now an option.
2009-10-16 22:31:56 -04:00
mark_story
b021461630
Updating documentation.
2009-10-16 22:15:57 -04:00
mark_story
23cf0da18e
Updating doc blocks
2009-10-16 22:10:01 -04:00
mark_story
aa0c7cbd7f
Merge branch '1.3-formhelper' into 1.3-misc
2009-10-16 22:03:07 -04:00
mark_story
4e038e55b3
Removing NONE options from FormHelper::dateTime(). These options are legacy options, from before date() and time() existed. If you need only date selects, use date(), same for time selects.
2009-10-16 22:02:07 -04:00
mark_story
d5ce5813c7
Fixing typo.
2009-10-16 22:02:07 -04:00
mark_story
f9f2986f48
Implementing Form helper default options. Allows the creation of persistent form options when opening a form.
...
Adding patch from 'Ceeram' / 'bankai'
Refs #56 .
2009-10-16 22:02:07 -04:00
mark_story
6dcc819121
Updating fileheaders.
2009-10-16 22:02:07 -04:00
mark_story
2e7a9a6d4e
Adding return to Shell::out() and ShellDispatcher::stdout(). They now return the number of bytes written to stdout. Fixes #164
2009-10-16 22:02:07 -04:00
mark_story
f07df02087
Making JsHelper::set() work well with setting the variables to an object property.
2009-10-16 22:02:06 -04:00
mark_story
4be98b6ed9
Adding JsHelper::set() + test cases.
2009-10-16 22:02:06 -04:00
predominant
1945204686
Minor formatting of media class.
2009-10-16 22:02:06 -04:00
ADmad
4d4447746a
Renaming "flashLayout" to "flashElement" to be consistent with changes to Session component and helper
...
Signed-off-by: Mark Story <mark@mark-story.com>
2009-10-16 22:02:06 -04:00
mark_story
7b1d21692f
Updating $pluginPath loops to use App::pluginPath().
2009-10-16 22:02:06 -04:00
mark_story
ecc7d9b303
Replacing $pluginPath loops with App::pluginPath(). Minor optimization for App::pluginPath().
2009-10-16 22:02:06 -04:00
mark_story
a36c2ec5bb
Removing self inclusions for test cases. Refs #174
2009-10-16 09:21:33 -04:00
mark_story
3a85197f25
Removing self inclusions for test cases. Refs #174
2009-10-16 09:19:23 -04:00
renan.saddam
43dbf71624
Doing a little optimization for php 5.1 <, also fixing tests on Windows. Fixes #155 .
2009-10-15 18:09:58 -03:00
mark_story
906eb82e9b
Fixing typo in prototype engine helper. Fixes #172
2009-10-15 11:09:13 -04:00
mark_story
078b84500b
Adding test from 'Phally' to expand coverage of allow()
2009-10-15 09:23:24 -04:00
mark_story
957be00d2e
Adding return to Shell::out() and ShellDispatcher::stdout(). They now return the number of bytes written to stdout. Fixes #164
2009-10-15 00:23:54 -04:00
mark_story
6c956c27ee
Making JsHelper::set() work well with setting the variables to an object property.
2009-10-14 21:43:50 -04:00
mark_story
170ed2928d
Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc
2009-10-14 21:27:42 -04:00
mark_story
4a330c0920
Adding JsHelper::set() + test cases.
2009-10-14 21:26:43 -04:00
mark_story
082156f9a1
Fixing FormHelper::input() label's for attribute when a datetime type is created and dateFormat or timeFormat is set to NONE. Fixes #168
2009-10-14 21:17:00 -04:00
mark_story
604b7e0a10
Splitting a long test for FormHelper up into smaller test cases.
2009-10-14 20:10:32 -04:00
predominant
e187e7581f
Minor formatting of media class.
2009-10-15 10:25:27 +11:00
ADmad
47558d4fe1
Renaming "flashLayout" to "flashElement" to be consistent with changes to Session component and helper
...
Signed-off-by: Mark Story <mark@mark-story.com>
2009-10-14 18:18:18 -04:00
mark_story
2f81c29def
Updating $pluginPath loops to use App::pluginPath().
2009-10-14 09:47:07 -04:00
mark_story
de8f251758
Replacing $pluginPath loops with App::pluginPath(). Minor optimization for App::pluginPath().
2009-10-14 09:28:06 -04:00
mark_story
38f65bdc24
Merge branch '1.2-merge-in' into 1.3
2009-10-14 00:55:42 -04:00
mark_story
d1f5acd0e0
Merge commit 'origin/1.2' into 1.2-merge-in
...
Conflicts:
cake/console/libs/shell.php
cake/libs/model/connection_manager.php
cake/libs/view/helpers/html.php
cake/libs/view/helpers/javascript.php
cake/tests/cases/libs/i18n.test.php
cake/tests/cases/libs/model/connection_manager.test.php
cake/tests/cases/libs/model/model_read.test.php
cake/tests/cases/libs/view/helpers/html.test.php
cake/tests/groups/database.group.php
2009-10-14 00:51:55 -04:00
mark_story
ca6ca39467
Updating formatting on doc block for string insert.
2009-10-13 12:09:06 -04:00
José Lorenzo Rodríguez
6dbb8690ad
Fixing error in String::insert where string that contained a question mark were not propperly replaced
2009-10-13 12:07:22 -04:00
José Lorenzo Rodríguez
24c82e73c1
Fixing broken test after removing the var pageTitle from controller
2009-10-13 11:44:00 -04:00
mark_story
f2cba2f066
Updating model_write.test to not use removed validation constants.
2009-10-13 00:44:28 -04:00
mark_story
0602293d3e
Updating file headers for group tests.
2009-10-13 00:33:14 -04:00
mark_story
529f8483c4
Adding Behaviors test group.
2009-10-13 00:32:52 -04:00
mark_story
96247e827b
Adding group test for i18n, l10n and multibyte test cases.
2009-10-13 00:21:19 -04:00
mark_story
82f2291bd4
Updating Lib Group test to include files manually and run.
2009-10-13 00:19:15 -04:00
mark_story
496bfaf32e
Fixing test that relied on Late Static binding to pass.
2009-10-13 00:18:09 -04:00
mark_story
a4d09a806c
Adding tests for previous commit, showing alteration of \ into DS.
2009-10-13 00:01:09 -04:00
mark_story
e5a99b2685
Updating RequestHandler::renderAs() to respect DS constant, fixing issues on PHP4 + Windows. Fixes #97
2009-10-12 23:55:40 -04:00
mark_story
e04cc81613
Updating doc block.
...
Removing redundant condition.
2009-10-12 23:38:55 -04:00
mark_story
a3f38c77dd
Merge branch '1.3-console' into 1.3
2009-10-11 21:51:02 -04:00
mark_story
71f9ab1717
Merge branch '1.3-misc' into 1.3
2009-10-11 21:44:42 -04:00
mark_story
e77ff5ae50
Fixing CacheHelper tests when app/views/posts/index.ctp exists.
2009-10-11 21:42:15 -04:00
mark_story
382488a9a7
Updating tests to reflect changes in default bake templates.
2009-10-11 21:39:41 -04:00
mark_story
7d4bc20fbd
Updating model to reflect changes in Validation.
2009-10-11 21:35:06 -04:00
mark_story
1613b849d1
Correcting typos.
2009-10-11 21:19:52 -04:00
mark_story
0221a81b33
Fixing missed string.
2009-10-11 21:18:29 -04:00
mark_story
4f6e9d4873
Changing default bake views to allow easier i18n. Refs #3356
2009-10-11 21:09:15 -04:00
mark_story
a89882581b
Adding i18n support to text that lacked it. Refs #5814
2009-10-10 00:35:54 -04:00
mark_story
d59a2c8de1
Making subclassing of ErrorHandler much easier.
...
Test cases added.
2009-10-09 00:13:08 -04:00
mark_story
955bd338e7
Unsetting local vars, so that viewVars with the name will be extracted.
2009-10-08 23:55:17 -04:00
mark_story
f59d95e348
Updating file headers.
2009-10-08 23:46:05 -04:00
mark_story
8d40532931
Applying patch from 'Ceeram'. Adds File::copy() and test case. Refs #150
2009-10-08 23:27:31 -04:00
mark_story
c5ec87e577
Adding tests for SchemaShell::generate() with plugins, testing that plugin schema files do not include non plugin models.
2009-10-08 22:40:17 -04:00
mark_story
ee7015c9bd
Adding tests for utf8 chars to TextHelper::truncate()
2009-10-07 23:56:38 -04:00
mark_story
55ef5cedfb
Updating fileheaders.
2009-10-07 23:43:02 -04:00
mark_story
fc0e50f64a
Adding tests for multibyte validation.
2009-10-07 23:43:02 -04:00
mark_story
2c144a9d0d
Adding mb_ functions to Validation methods.
2009-10-07 23:43:02 -04:00
mark_story
0d3ef03b9f
Updating file headers.
2009-10-07 23:43:01 -04:00
mark_story
06162d5022
Deprecating TextHelper::trim() as it is an alias for truncate().
...
Expanding use of mb_ methods.
Tests updated.
2009-10-07 23:43:01 -04:00
mark_story
190a8b8307
Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc
2009-10-07 01:35:42 -04:00
mark_story
4b862de085
Fixing interactions with Routing.prefixes in Controller and View task.
2009-10-07 01:35:29 -04:00
jperras
c95221919a
Removing validation tests that relied on removed define()'ed constants.
2009-10-07 01:10:51 -04:00
jperras
84b5458a36
Reverting inheritance modification to Validation.
2009-10-07 01:08:19 -04:00
mark_story
1110f3e1c2
Updating Validation method extraction.
2009-10-07 00:51:55 -04:00
mark_story
651a3f16b2
Updating ProjectTask::getAdmin(). Renamed to ProjectTask::getPrefix(). Now returns the user selected prefix to use for baking.
...
Test cases updated. Use of method updated.
2009-10-07 00:46:13 -04:00
jperras
d38e50805d
Improving performance of String::insert().
2009-10-06 22:02:02 -04:00
jperras
1795733eda
Merge branch '1.3-misc' of code.cakephp.org:cakephp into 1.3-misc
2009-10-06 21:27:56 -04:00
mark_story
9a023136e3
Merge branch '1.3-misc' into 1.3
2009-10-06 17:23:35 -04:00
mark_story
f59e4013c7
Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2
2009-10-06 09:22:47 -04:00
mark_story
6e9ca4367e
Fixing connection methods in DboSybase. Fixes #145
2009-10-06 09:21:43 -04:00
mark_story
8acf1eeba0
Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc
2009-10-06 09:09:18 -04:00
Niles
cbf676c0e4
remove call to deprecated method.
2009-10-06 08:42:35 -04:00
mark_story
2d2e692b37
Updating doc blocks to improve API parsing.
2009-10-05 21:27:34 -04:00
mark_story
a99d2ea821
Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2
...
Conflicts:
cake/libs/model/model.php
2009-10-05 21:02:41 -04:00
mark_story
51e471427a
Updating doc blocks to improve parsing in the API.
2009-10-05 21:01:31 -04:00
mark_story
3bf94e6a28
Updating documentation for Model methods to improve api parsing.
...
Removing redundant include.
2009-10-05 20:42:37 -04:00
mark_story
ace784aab5
Adding conditional check for errors only generated in PHP5.3
2009-10-04 22:22:39 -04:00
mark_story
0ba93bd579
Updating file headers, reformatting comments.
2009-10-04 22:12:13 -04:00
mark_story
d2bf31f69f
Fixing broken tests in dbo_mysql caused by changes in CakeSchema.
...
Adding tableParameter altering to DboMysql.
Tests added.
2009-10-04 21:48:20 -04:00
mark_story
7b0bc014cc
Updating whitespacing.
2009-10-04 20:54:27 -04:00
mark_story
778755c2b0
Implementing CakeSchema:;_compareTableParameters. Adding tests for tableParameter comparison.
2009-10-04 20:53:49 -04:00
mark_story
5021d11124
Updating the help() for bake task to include information about plugin shortcuts.
2009-10-04 17:59:12 -04:00
mark_story
b15471095b
Updating the help file for schema shell.
2009-10-04 15:12:05 -04:00
mark_story
2dc0fbf3b3
Making schema dump work with plugins.
...
Adding tests.
Making output of dump file more flexible.
2009-10-04 14:47:35 -04:00
mark_story
75f2106420
Made SchemaShell::view() work better with plugins. Tests added.
2009-10-04 14:06:07 -04:00
mark_story
30ef7960ac
Removing method that is no longer needed.
2009-10-04 13:39:43 -04:00
mark_story
aae120a81a
Updating file headers.
2009-10-04 13:35:11 -04:00
mark_story
05f6099def
Enabling plugin.name schema file creation and addition.
...
Making CakeSchema::load() use plugin parameter, tests added.
Plugin schema file added to test_app.
2009-10-04 13:32:33 -04:00
mark_story
c2a53d3c69
Removing cake schema run
. Replacing it with cake schema create
and cake schema update
. Removes extra typing and simplifies schema shell commands.
...
Updating test cases.
2009-10-04 11:16:23 -04:00
mark_story
e1d0be610c
Splitting help() into more readable format.
2009-10-04 10:24:15 -04:00
mark_story
76a88fc477
Updating help() for Schema shell.
2009-10-04 10:04:48 -04:00
mark_story
0b6d6cee6c
Adding placeholder method to DboMysql to handle alteration of table parameter statement generation.
2009-10-03 16:49:01 -04:00
mark_story
2fe877e527
Adding method to compare tableParameters in the Schema, so they no longer fall through as fields.
2009-10-03 16:48:10 -04:00
mark_story
0fc6f58cfb
Refactoring and merging duplicated code between CakeSchema and FixtureTask
2009-10-03 16:15:56 -04:00
mark_story
236a679b17
Updating tests for schema. Making tests more reliable for schema read.
2009-10-03 16:08:54 -04:00
mark_story
e733c569be
Fixing broken tests.
2009-10-03 12:44:49 -04:00
mark_story
0029a275bd
Refactoring code into a separate method. Will allow code reuse in fixture generation. Tests added.
2009-10-03 12:41:14 -04:00
mark_story
b75aa10da3
Merge branch '1.3-misc' into 1.3-schema
2009-10-03 11:55:27 -04:00
mark_story
71aa460a48
Continuing work on getting plugin support for CakeSchema and SchemaShell. Applied patch from 'SkieDr', test cases added.
2009-10-03 11:48:02 -04:00
mark_story
58e9c0e328
Fixing typo.
2009-10-03 11:48:02 -04:00
mark_story
e5088f7613
Adding App::pluginPath() to find paths for plugins.
2009-10-03 11:48:02 -04:00
mark_story
07002c8b09
Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc
2009-10-03 11:44:26 -04:00
ADmad
10aa5d158b
Updating find calls to use new syntax
...
Signed-off-by: Mark Story <mark@mark-story.com>
2009-10-02 15:50:36 -04:00
mark_story
ed2e20ed23
Merge branch '1.3-misc' into 1.3
2009-10-02 13:18:12 -04:00
mark_story
4794680444
Deprecating CakeSession::del(), use delete() instead.
...
Updating file headers.
Updating test cases.
2009-10-02 13:11:43 -04:00
mark_story
c47e899ba1
Fixing HtmlHelper::css, and JavascriptHelper::link so that files containing the asset extension always get the extension added. Test cases added. Refs #139
2009-10-02 12:53:20 -04:00
mark_story
f12cbdba38
Fixing CacheHelper and multiple cake:nocache tags in a view file, breaking cake:nocache following $content_for_layout. Fixes #136
2009-10-01 01:03:47 -04:00
mark_story
347c175b85
Updating documentation blocks for CacheHelper.
2009-09-30 22:44:15 -04:00
mark_story
32d5b40cd0
Adding error triggering while in debug mode for unhandled validation methods.
2009-09-30 22:34:29 -04:00
mark_story
7d4510b959
Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2
2009-09-30 14:26:38 -04:00
mark_story
5f49a0f25c
Updating path handling inside i18n. Removes the extra DS that was appended to some paths. Fixes #126
2009-09-30 14:25:56 -04:00
mark_story
cba8871f16
Adding tests so that adding one prefix removes other prefixes. Making it so you can only have one prefix at a time in a route. Also simplifies prefix switching.
2009-09-30 10:19:43 -04:00
mark_story
d2b4e33e1b
Adding break; to escape out of prefix checking, optimizes operations with many prefixes.
2009-09-30 10:01:08 -04:00
mark_story
58ec259714
Merge branch '1.3-router' into 1.3-misc
2009-09-30 00:51:20 -04:00
mark_story
893e177909
Fixing isset() checks in Router to test for empty values instead.
...
Updating prefix use in paginator helper test.
2009-09-30 00:50:15 -04:00
mark_story
4094f0a696
Moving DboMysql::listDetailedSources() and DboMysql::getCharsetName() into DboMysqlBase so it works with mysqli as well. Tests added for MySqli.
2009-09-30 00:39:32 -04:00
mark_story
6dbba17d1b
Fixing issues with DboSource::execute() where queries would not be run if stats = false in the options. Tests added.
2009-09-30 00:37:06 -04:00
jperras
9409f2651e
Removing deprecated validation constants of VALID_NOT_EMPTY, VALID_NUMBER, VALID_EMAIL and VALID_YEAR.
2009-09-30 00:05:17 -04:00