Commit graph

1327 commits

Author SHA1 Message Date
predominant
59c62426c9 Merge branch '1.3-misc' of code.cakephp.org:cakephp into 1.3-misc 2009-11-04 16:11:35 +11:00
predominant
cf42c8dd7f Updating default views and baking templates to use $this->Helper syntax for helpers. 2009-11-04 15:52:56 +11:00
mark_story
12c7203c71 Merge branch '1.3-alpha' into 1.3
Conflicts:
	cake/libs/view/pages/home.ctp
2009-11-03 23:19:01 -05:00
mark_story
1d22adbc1a Merge branch '1.3-misc' into 1.3 2009-11-03 22:50:11 -05:00
mark_story
0aecb9de2d Applying patch from 'dogmatic' to update home.ctp to use helper methods, and i18n. 2009-11-03 22:40:36 -05:00
mark_story
bc8d920c0f Updating changelog link on home.ctp 2009-11-03 19:53:59 -05:00
mark_story
d63218c0a0 Fixing error in previous commit. 2009-11-03 09:52:59 -05:00
mark_story
6b043c6c57 Updating doc blocks for paginator helper. 2009-11-02 21:37:20 -05:00
renan.saddam
91b9e1d50b Updating docblock for FormHelper::dateTime method. 2009-11-02 13:57:05 -02:00
renan.saddam
034b5c435c Allowing FormHelper::month() to use a $monthNames array as values. 2009-11-02 13:51:16 -02:00
ceeram
988ab2d29f fixes Ticket #6300
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-02 00:19:44 -05:00
mark_story
9d2628f699 Removing tab 2009-11-02 00:07:16 -05:00
mark_story
a87d31cc7f Fixing $cacheAction requiring the inclusion of the controller name for view cache files to be generated. This behavior makes the cache helper behave as documented.
Test cases added.  Fixes #232
2009-11-02 00:07:02 -05:00
mark_story
a3bb77c4f3 Merge branch '1.2' into 1.3-merger
Conflicts:
	cake/console/libs/acl.php
	cake/console/libs/tasks/controller.php
	cake/console/libs/tasks/db_config.php
	cake/console/libs/tasks/model.php
	cake/console/libs/templates/skel/views/layouts/xml/default.ctp
	cake/libs/model/datasources/dbo/dbo_mysql.php
	cake/libs/model/datasources/dbo/dbo_mysqli.php
	cake/libs/validation.php
	cake/libs/view/helpers/form.php
	cake/tests/cases/basics.test.php
	cake/tests/cases/console/libs/tasks/model.test.php
	cake/tests/cases/libs/cake_test_case.test.php
	cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php
	cake/tests/cases/libs/model/datasources/dbo/dbo_mysqli.test.php
	cake/tests/cases/libs/view/helpers/javascript.test.php
	cake/tests/cases/libs/view/helpers/session.test.php
	cake/tests/groups/controller.group.php
	cake/tests/groups/lib.group.php
	cake/tests/groups/no_database.group.php
2009-11-01 12:11:49 -05:00
mark_story
44d7742b85 Minor refactoring and removal of duplicate test. 2009-10-31 16:28:43 -04:00
tPl0ch
2331cfde60 Added 'before' and 'after' options to FormHelper::submit(). Test cases updated.
Signed-off-by: Mark Story <mark@mark-story.com>
2009-10-31 16:21:53 -04:00
mark_story
6726b76077 Refactoring input() to reduce number of method calls.
Applying patch from 'j3ffy' to allow user defined types to override magic select type.
Test case added.
Fixes #5109
2009-10-31 01:45:17 -04:00
mark_story
ade96b7ea5 Updating doc blocks. 2009-10-31 01:11:02 -04:00
mark_story
83caf50918 Fixing doc blocks and minor refactoring. 2009-10-31 01:04:33 -04:00
mark_story
9ed7a5cd55 Adding new options into doc blocks.
Removing todo as its implemented already.
2009-10-31 00:58:21 -04:00
mark_story
ac302bb6c2 Minor refactoring.
Adding tests for form->create() with file type forms.
2009-10-31 00:08:49 -04:00
José Lorenzo Rodríguez
adea104edb Allowing output disabling of hidden fields in checkbox and radio input types. closes #6185
Signed-off-by: Mark Story <mark@mark-story.com>
2009-10-30 22:47:31 -04:00
José Lorenzo Rodríguez
1c47b2182e Adding form encoding default in form create options. Default is always taken from Configure::read('App.encoding'). closes #6042 2009-10-30 22:35:21 -04:00
José Lorenzo Rodríguez
dfc1014fba Making current action be the default for new forms. Updating test accordingly. closes #5353
Signed-off-by: Mark Story <mark@mark-story.com>
2009-10-30 22:29:49 -04:00
renan.saddam
84a10904fb Fixing typo on variable name. 2009-10-30 18:42:04 -02:00
mark_story
8b26d9ceb2 Applying optimization from 'Ceeram' reduces merges in FormHelper.
Fixes #225
2009-10-29 19:10:04 -04:00
renan.saddam
61845090ed Changing variable name to make consistency between others methods. 2009-10-29 01:31:55 -02:00
renan.saddam
e7074c1e5c Moving parameters to $options on Text::truncate() and Text::highlight(). 2009-10-29 01:23:44 -02:00
mark_story
6c18c0e0c7 Fixing escape parameter usage. 2009-10-28 18:41:29 -04:00
mark_story
00d7c655ce Improving documentation for PaginatorHelper::sort() Fixes #210 2009-10-27 13:28:43 -04:00
mark_story
6123ed47c4 Removing empty strings that caused undefined string offset errors.
Trimming trailing spaces.
2009-10-22 00:17:48 -04:00
José Lorenzo Rodríguez
2f0598b5c4 Removing todo message, as it is implemented correctly 2009-10-22 00:17:39 -04:00
José Lorenzo Rodríguez
ce743c00e8 Expanding Helper an View functionaility to accept deep nested entitities.
This allows the form helper to render inputs with arbitrary number of dot separated parts
2009-10-22 00:17:23 -04:00
José Lorenzo Rodríguez
50ec80ff50 Continuing work on Helper::setEntity and associated methods 2009-10-22 00:17:14 -04:00
José Lorenzo Rodríguez
2941e89da3 Making Helper::viewEntity accept any number of levels 2009-10-22 00:16:37 -04:00
José Lorenzo Rodríguez
31f0cdc214 REfactoring model introspection to gather info form multiple models 2009-10-22 00:16:28 -04:00
mark_story
8b419d2dd8 Removing use of ife() from core classes. 2009-10-21 12:57:15 -04: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
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
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
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
mark_story
ecc7d9b303 Replacing $pluginPath loops with App::pluginPath(). Minor optimization for App::pluginPath(). 2009-10-16 22:02:06 -04:00
mark_story
906eb82e9b Fixing typo in prototype engine helper. Fixes #172 2009-10-15 11:09:13 -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
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
a89882581b Adding i18n support to text that lacked it. Refs #5814 2009-10-10 00:35:54 -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
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
Niles
cbf676c0e4 remove call to deprecated method. 2009-10-06 08:42:35 -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
58ec259714 Merge branch '1.3-router' into 1.3-misc 2009-09-30 00:51:20 -04:00
mark_story
1c8ec459b6 Removing 'id' key param in FormHelper::create() it normally only served to make routing more complex. Removal also enables reverse routing to work with scaffolding. 2009-09-29 22:46:45 -04:00
mark_story
070bbb5d0e Removing magic 'title' key in Controller::set() and View::set()
Removing Controller::$pageTitle and View::$pageTitle.
Instead you should set('title_for_layout', $val) from your view or controller.
Test cases updated.
2009-09-28 21:23:40 -04:00
mark_story
508d737b6a Updating HtmlHelper::css, JavascriptHelper::link to not replace multiple occurences of CSS_URL or JS_URL when using Asset.filter settings.
Test cases added.
Thanks to 'robustsolution' for the patch.
Fixes #105
2009-09-26 14:22:12 -04:00
mark_story
06cf97459a Fixing XmlHelper::elem() when value is null and cdata = true. Removing empty invalid tag.
Test cases added.
Fixes #127
2009-09-24 22:43:31 -04:00
mark_story
e030400f8e Updating links in home.ctp to point a new address for changelogs and to code.cakephp.org instead of trac. 2009-09-24 22:26:55 -04:00
mark_story
7f49f7f455 Updating HtmlHelper and JavascriptHelper to use Helper::assetTimestamp 2009-09-24 00:16:19 -04:00
mark_story
ee514f3fc6 Adding Helper::assetTimestamp()
Refactor's repeated code from Html and Javascript Helpers.
Test cases added.
2009-09-23 23:45:11 -04:00
mark_story
26d2237df0 Making conditions easier to read.
Adding additional test for image timestamping.
Refs #108
2009-09-23 23:30:55 -04:00
ADmad
de4737323f Updated Html and Javascript helpers to suffix asset urls with timestamp even when the app is run off a subfolder on the domain
Signed-off-by: Mark Story <mark@mark-story.com>
2009-09-23 23:30:34 -04:00
mark_story
6946bb0295 Updating docs for FormHelper::inputs()
Fixes #110
2009-09-23 23:05:08 -04:00
mark_story
022f8ccaa2 Making conditions easier to read.
Adding additional test for image timestamping.
Refs #108
2009-09-22 19:04:40 -04:00
ADmad
07a89cd953 Updated Html and Javascript helpers to suffix asset urls with timestamp even when the app is run off a subfolder on the domain
Signed-off-by: Mark Story <mark@mark-story.com>
2009-09-22 18:57:30 -04:00
mark_story
e6cc81226d Merge branch '1.3-jshelper' into 1.3 2009-09-20 17:46:30 -04:00
ADmad
5049265a49 Fixed incorrect doc. block for TimerHelper::format 2009-09-20 11:08:48 -04:00
mark_story
05f908d36d Fixing failing tests in JsHelper caused by changed API in HtmlHelper. 2009-09-16 01:55:15 -04:00
mark_story
5717e3b59c Merge branch '1.2' into 1.2-merger
Conflicts:
	app/webroot/test.php
	cake/VERSION.txt
	cake/bootstrap.php
	cake/config/config.php
	cake/console/cake.php
	cake/console/libs/schema.php
	cake/console/templates/skel/webroot/test.php
	cake/libs/configure.php
	cake/tests/cases/console/libs/schema.test.php
	cake/tests/cases/libs/debugger.test.php
	cake/tests/cases/libs/model/model_write.test.php
	cake/tests/fixtures/aco_fixture.php
2009-09-16 01:23:49 -04:00
mark_story
3ef53aa159 Applying optimization from 'wangbo' to View::renderCache(). Fixes #26 2009-09-14 23:56:50 -04:00
mark_story
f1194a4ec9 Commiting fix to pass tests in last commit.
Making View::renderCache tests more specific.
2009-09-14 23:53:04 -04:00
mark_story
01cf40bf12 Adding automatic use of $options for $disabledOptions in PaginatorHelper::next() and PaginatorHelper::prev(). Thanks to 'joaquin_win' for the initial patch. Refs #83 2009-09-14 23:06:24 -04:00
mark_story
326424592d Merge branch '1.2' into 1.2-merger
Conflicts:
	cake/VERSION.txt
	cake/config/config.php
	cake/dispatcher.php
	cake/libs/controller/scaffold.php
	cake/libs/inflector.php
	cake/libs/view/view.php
	cake/tests/cases/libs/controller/scaffold.test.php
	cake/tests/cases/libs/inflector.test.php
	cake/tests/cases/libs/view/view.test.php
	cake/tests/fixtures/counter_cache_post_fixture.php
	cake/tests/fixtures/counter_cache_user_fixture.php
2009-09-13 13:52:58 -04:00
mark_story
9c41efd6fe Adding NumberHelper::addFormat and test cases. Refs #5630 2009-09-10 22:54:49 -04:00
mark_story
5f6015c3c4 Updating file headers and removing @static. 2009-09-10 22:23:48 -04:00
mark_story
0065005f95 Fixing custom error class not being used if error for field is a named index. Test case added. Fixes #76 2009-09-10 09:57:23 -04:00
mark_story
cf3521737f Fixing selected with interval not selecting the correct option. Fixes #70. 2009-09-03 22:47:17 -04:00
mark_story
ce7864920f Adding ability to add arbitrary attributes to HtmlHelper::scriptBlock. Test case added. 2009-09-03 13:50:53 -04:00
mark_story
ead3b0ecf6 Allowing HtmlHelper::script() to take an array of options, allows for custom attributes to be added to script include tags. Test cases added. Fixes #2955 2009-09-03 13:45:39 -04:00