Commit graph

253 commits

Author SHA1 Message Date
evilbloodydemon
75695341fa Helpers addressed by $this->Helper->func() 2009-09-03 00:58:26 -04:00
mark_story
776992dc6c Further optimizations to path scanning. 2009-08-30 19:13:54 -04:00
mark_story
8be5de947b Minor refactor in how paths are checked, so that fallback extensions are checked only when all paths fail, instead of for each path. Refs #49 2009-08-30 19:07:36 -04:00
mark_story
ef23ecfe07 minor refactor for file_exists checks. 2009-08-30 18:59:07 -04:00
mark_story
31ec714e2e Adding View::_paths() optimization.
Test cases added.
Refs #49
2009-08-23 23:13:56 -04:00
mark_story
325446a8b3 Updating View::_paths to remove an always miss file_exists() check.
Test case added.
Refs #49
2009-08-23 22:43:51 -04:00
mark_story
a0feb84789 Removing support for deprecated .thtml view file extension. 2009-08-22 11:50:02 -04:00
mark_story
7a3a6966c2 Removing deprecated View::renderElement() 2009-08-20 01:20:44 -04:00
mark_story
6b6d7959e1 Updating doc blocks. 2009-08-20 01:20:13 -04:00
mark_story
add1dede86 Removing conditional calling of View::_render() as a static method.
Updating doc blocks.
2009-08-20 01:15:08 -04:00
gwoo
062f471b7f updating App::import usage. ran each test and everything seems ok. 2009-07-25 18:27:02 -07:00
AD7six
b2142df2bc adding a newline before all comment blocks 2009-07-24 21:18:37 +02:00
gwoo
a9d98e73c3 Merge branch '1.2' into 1.3 2009-07-22 09:27:31 -07:00
gwoo
4cfdd311a9 fixes #6476, crash on missing layout in session flash
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8238 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-21 01:33:12 +00:00
gwoo
bc359259a2 Merge branch '1.2' into 1.3 2009-07-02 09:27:00 -07:00
mark_story
fd818bc493 Applying patch from 'mulleto'. Fixes plugin view file location with CamelCase plugin names. Test cases added.
Fixes #6334

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8202 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-24 22:02:00 +00:00
gwoo
24d78dd671 moving path configuration to App class 2009-06-07 15:24:10 -07:00
nate
23174203e3 Optimizing helper loading loop in View::_render() 2009-02-06 18:13:17 -05:00
mark_story
943bb53dda Correcting callback firing of helpers in view. Tests added fixes #5906
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7948 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-21 22:14:48 +00:00
phpnut
4cdbd4edd9 Removing unreachable code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7896 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-27 04:52:45 +00:00
mark_story
acb9e72355 Minor refactor to helper callback triggering. Moving repeated loops to _triggerHelpers(). Allows View subclasses to add additional callbacks.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7886 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-24 05:36:06 +00:00
nate
fde0d21053 Cleaning up and finishing code formatting changes in View class.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7854 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-09 03:37:24 +00:00
nate
16eebce7f7 Adding support for DboSource::expression(), plus test in Model case. Fixing code formatting in model test and View class -- wrapping lines at 100 characters.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7853 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-09 03:20:14 +00:00
renan.saddam
6319f8ea69 Removed trailing whitespaces from core.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7847 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 02:54:07 +00:00
AD7six
3f2fa6929b changing tabs for spaces in comment block indentation
Removing address and replacing with cakefoundation url


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7805 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-30 17:30:26 +00:00
mark_story
1b456f2cf1 Applying patch from 'davidpersson' fixing code spacing. Closes #5643
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7772 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-23 00:10:44 +00:00
phpnut
8ae5866a1c Additional optimization refactoring
Removed ability to use deprecated / with plugin, helper, etc combinations. The dot notation is only allowed from this point forward.
Corrected tests for the above changes.
Corrected formating in basics.php

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7623 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-18 03:09:19 +00:00
mark_story
2b984bed94 changing array_key_exists to isset. Refs #5161
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7601 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-14 05:00:05 +00:00
DarkAngelBGE
fe82e827f0 Refactoring ScaffoldView::_getViewFileName()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7569 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-08 15:44:32 +00:00
DarkAngelBGE
311072f4ae Refactoring View::_getLayoutFileName()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7568 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-08 15:39:40 +00:00
gwoo
ecac053ea2 minor optimization on loading helpers in view
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7503 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-25 22:56:56 +00:00
mark_story
d9de0c6cd5 Adding documentation to doc-blocks for View
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7425 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-03 05:24:10 +00:00
TommyO
b6e9888753 Replaced all instances of ife() in /cake
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7387 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-30 20:34:01 +00:00
mark_story
684fb5fcce Replaced in_array() with array_key_exists(). Closes #4465
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7336 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-12 00:23:08 +00:00
gwoo
abf3d0685a fixes #4986, .ctp extension failover for layouts
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7260 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-25 03:16:53 +00:00
nate
f7a4858503 Correcting coding standards violations
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7220 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-20 11:57:56 +00:00
gwoo
01bf6526c4 fixes #4911, scripts for layout on cache refresh
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7197 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-15 19:48:15 +00:00
mark_story
68af2bb1ed Fixing compatibility with Helper::beforeLayout, Helper::afterLayout and PHP4. Closes #4880
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7163 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-11 00:20:01 +00:00
gwoo
5807def032 updating some view stuff
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7140 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-08 15:44:46 +00:00
nate
42da5aba81 Moving Cake folder to correct location
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7063 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 11:40:08 +00:00
DarkAngelBGE
e6e0d852a2 deleting cake folder from svn
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7061 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 10:59:16 +00:00
gwoo
f7d07012dd cleaning up some deprecated code. renderElement is deprecated, but a the notice was removed for this release. Notice will be thrown in next release and method will be removed in the following release. Refactor of View Caching, along with addition of enabling beforeFilter and component initialize/startup callbacks. Use {{{
//set for the individual action
var $cacheAction = array('view' => array('duration' => '+1 hour', 'callbacks' => false)); 
//globally disable callbacks for all actions
var $cacheAction = array(callbacks' => false, 'view' => '+1 hour');  
//per method
$this->cacheAction = array('duration' => '+1 hour', 'callbacks' => true);
}}}

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7031 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 17:43:13 +00:00
mark_story
6384da5b53 View::beforeLayout and View::afterLayout now implemented closes #4722
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7018 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 02:16:36 +00:00
joelmoss
cedb20e612 Replaced all instances of renderElement() with element(). Fixes #4740
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7017 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 23:04:36 +00:00
mark_story
2a0f5dd041 Fixed View::element(). If CacheHelper is added to the $helpers array in lowercase, it caused undefined var errors fixes #4705
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6984 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 12:22:46 +00:00
mark_story
44470c2e72 Merged View::renderElement() and View::element() closes #4569
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6978 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 00:56:17 +00:00
gwoo
84739652c8 adding fix for windows paths in view, thanks renan`saddam for reporting and debugging
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6895 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 23:57:24 +00:00
the_undefined
825eb48508 Fixed missing view path for plugins, closes #4244
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6856 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 22:18:30 +00:00
nate
925e022e4f Adding check for XDebug in CCM test, fixing database check in MySQL, adding test coverage for View, fixes #4619
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6797 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 15:48:45 +00:00
phpnut
acc79fe0f3 "Closes #2508, Allow requestAction to use array urls
Fixes #4325, error pages no longer displayed since changeset
Closes #4329, remove am() usage in core"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6563 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-12 21:19:31 +00:00
phpnut
57918f4199 "Fixing Controller::output; to allow access to the content in Contorller::afterFilter();"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6554 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-10 13:24:36 +00:00
nate
017afa637d Fixing View::render() for custom views on Windows, fixes #4265
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6506 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-03 23:30:52 +00:00
gwoo
d3e2d51cbc updating error handling, error.test, view.test, theme.test, change socket.test to use App::import()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6479 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-27 21:22:40 +00:00
nate
f3355bd74b Removing all references to deprecated 'webservices' and 'bare' routes and route parameters, removing deprecated constants, updating core tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6453 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-11 06:18:41 +00:00
gwoo
6abbb882f5 updating view error handling, fixes #4069 and fixes #4073, added long dash to escaped chr in http socket
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6439 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-06 07:30:49 +00:00
gwoo
01418cdb00 updating View error handling for extensions, fixes #3795
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6348 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-09 13:21:21 +00:00
phpnut
cb53dc61b0 "Closes #2897, Built-in file validation.
Implemented Validation::extension(); and Vaidation::range();
Updated copyright notices in all files"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6296 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-01 22:18:17 +00:00
gwoo
a1198bb3b7 reverting previous changes and updating view, fixes #3785
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6279 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-29 21:20:48 +00:00
gwoo
3b1b182873 updating view again
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6278 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-29 21:10:41 +00:00
gwoo
aa637e1b1d updating view, fixes #3785
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6277 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-29 21:03:36 +00:00
gwoo
99da081907 updating dispatcher, fixes #3773, fixes #3783, fixes #3779, updating default layouts, adding Debugger::dump($var); and some other changes for exporting string vars
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6272 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-29 19:05:22 +00:00
gwoo
0a703ef8c0 adding 'cake bake all' see cake bake help for more info, also refactored tasks (api changes) and class registry, closes #1470, closes #3612, closes #2697, closes #3412
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6198 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 19:24:56 +00:00
gwoo
0b21622734 allowing templates to override layout, but only when property is used, if layout is passed to Controller::render(); it will be used, closes #3759
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6190 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 02:04:26 +00:00
gwoo
98f454bc8a updating asset handling, closes #3149 To use compression for css and js files in vendors use Configure::write('Asset.compress', true);
Also, closes #1897 serving css and js from plugin vendors folder for paths within that plugin. Tests added.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6189 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 01:37:46 +00:00
gwoo
60f4dd360d updating View and Controller::flash, fixes #3749, tests added
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6177 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-20 01:19:19 +00:00
gwoo
dcb9996b43 updating view loading helpers, fixes #3744, tests added, uses Inflector::slug() for element cache file name, uses renderElement for dump of cakeDebug
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6165 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-17 07:28:53 +00:00
phpnut
649840b91a "Correcting path to dump.ctp"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6164 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-17 00:35:21 +00:00
gwoo
67bbb0e93e refactoring view classes, added ScaffoldView that extends ThemeView in scaffold.php, adding tests, adding test_app with files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6155 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-14 22:20:44 +00:00
phpnut
8a2b51c3ec "Removing all shortcut function usage from the core"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6128 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-08 06:08:03 +00:00
phpnut
d815b823dd "Fixes #3649, Page_Title Bug in Flash()/Render()"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6114 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-03 01:47:17 +00:00
phpnut
de8e7d8b01 "Closes #1854, Core.po not loaded when using /app/locale/..../default.po
Closes #3539
Fixes #3611, Cannot redeclare loadmodels
Fixes #3622, loadControllers() and loadModels() look in wrong folders for AppController resp. AppModel
Added trigger_error to all deprecated functions in basics.php
Refactored I18n class to remove debug_backtrace() usage in basics.php, all translations should be placed in a default.po or .mo file from this point forward.
_ _d() function should be used if domain specific translations are used.
Core translations can be placed in app/locales/{lang}/LC_MESSAGES/core.po or .mo these will now be merged with the specified language strings from default.po will replace the core message strings
All translations are now cached to improve performance.
"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6065 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-23 08:16:23 +00:00
gwoo
fcdc5ad640 adding support for 0 key in multiple records in View::entity(), added tests to Helper test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6025 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-19 14:08:37 +00:00
nate
6040dd2779 Updating helpers with new form field naming scheme
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5945 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-04 18:07:59 +00:00
phpnut
8d6599c34b Fixing bug for related records not being returned when using $recursive > 1.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5902 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-26 08:40:10 +00:00
phpnut
56425c7f39 Closes #3429, scripts_for_layout are lost when you send an email with EmailComponent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5874 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 23:52:12 +00:00
phpnut
160cd28440 Correcting @return int
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5858 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:11:12 +00:00
mariano.iglesias
897825d596 Adding documentation to classes belonging to Cake console.
Standarizing on datatypes used in phpdocblocs and removing unneeded @return types

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5851 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 05:52:20 +00:00
phpnut
cc7d1ab74c Fixes #2462 mime_content_type() is deprecated in EmailComponent.
Closes #2909, Emailcomponent SMTP authentication.
Closes #2916, EmailComponent: Add read receipt header.
Closes #2969, change default charset in emailcomponent from ISO-8859-15 to utf-8.
Closes #3304, EmailComponent doesn't allow custom view class.
Fixes #3353, Email Component, content not shown when a file is attached.
Fixes #3381, Email::__wrap function ignores the $_newLine configuration property.
Fixed ThemeView::renderElement() to load helpers
Changed View::renderElement() to search core elements also

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5788 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-19 02:31:25 +00:00
nate
52f582bf44 Fixing docblocks and code formatting in View class (Ticket #3371)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5751 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-13 15:38:07 +00:00
gwoo
cb80df2219 removing $controller property from view, closes #3337
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5709 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-01 19:54:33 +00:00
gwoo
2ef118c3c4 replacing define CACHE_CHECK with Configure Cache.check, updating Model::exists()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5707 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-01 16:49:37 +00:00
gwoo
b222afd20b fixing errors resulting from removal of argSeparator and namedArgs
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5537 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-16 17:54:02 +00:00
nate
90567a286a Moving named argument handling into Router
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5535 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-16 16:31:50 +00:00
gwoo
889e62881b added option to modify element cache name, #2327, see tests. Adding auth key for flash message, #2996
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5497 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-07 07:44:12 +00:00
phpnut
2a38655bd0 Adding fix for #2862, fixes view::render() affect the layout of the main view
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5385 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-07 18:13:05 +00:00
phpnut
fd787a9b74 Added fix for #2824, fixes Empty elements when DISABLE_CACHE is set to true
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5381 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-06 05:14:19 +00:00
phpnut
fb0a327a38 Adding fix for #2823, fixes Element gets different instances of helper than view in PHP4 and PHP5
Removed HtmlHelperTest::testRadio(), the HtmlHelper::radio() has been deprecated

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5379 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-06 04:31:45 +00:00
phpnut
dac1bd0913 Correcting code structure to standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5315 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 07:51:52 +00:00
phpnut
23dfd90b29 Correcting code structure to standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5313 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 06:15:35 +00:00
gwoo
3d242d2e90 udpated view to work with form helper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5259 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-08 01:18:00 +00:00
phpnut
137fea94c6 Cleaning up line endings
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4994 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 04:35:25 +00:00
phpnut
4bac0a063b Removing deprecated code and files
/basics.php
 * normalizeList() Deprecated: see Set::normalize
 * countdim() see Set::countDim

libs/controller/components/request_handler.php
 * RequestHandler::disableStartup = false; see RequestHandler::$enabled
 * RequestHandlerComponent::setView() see RequestHandlerComponent::renderAs()
 * RequestHandlerComponent::setAjax() see RequestHandlerComponent::renderAs()

libs/controller/components/session.php
 * SessionComponent::flash() use $session->flash('key'); in your views

libs/controller/controller.php
 * Controller::_setTitle() see Controller::set()

libs/model/datasources/dbo_source.php
 * DboSource::fetchArray() see DboSource::fetchRow()
 * DboSource::one() see DboSource::fetchRow()

libs/model/db_acl.php
 * DB_ACL::getAco()  see AclComponent::$Aco::node()
 * DB_ACL::getAro() see AclComponent::$Aro::node()

libs/neat_array.php
 * Class is not longer available use libs/set.php Set class

libs/sanitize.php
 * Sanitize::sql() see Sanitize::escape()
 * Sanitize::cleanArray() see Sanitize::clean()
 * Sanitize::cleanArrayR() see Sanitize::clean()
 * Sanitize::cleanValue() see Sanitize::clean()

libs/view/helper.php
 * Helper::parseHtmlOptions() see HtmlHelper::_parseAttributes()

libs/view/helpers/form.php
 * define('TAG_DIV', '<div class="%s">%s</div>');
 * define('TAG_P_CLASS', '<p class="%s">%s</p>');
 * define('TAG_LABEL', '<label for="%s">%s</label>');
 * define('TAG_FIELDSET', '<fieldset><legend>%s</legend>%s</label>');
 * FormHelper::labelTag() see FormHelper::label()
 * FormHelper::divTag() see HtmlHelper::div()
 * FormHelper::pTag() see HtmlHelper::para
 * FormHelper::generateInputDiv() see FormHelper::input()
 * FormHelper::generateCheckboxDiv() see FormHelper::input()
 * FormHelper::generateDate() see FormHelper::input()
 * FormHelper::generateTime() see FormHelper::input()
 * FormHelper::generateDateTime() see FormHelper::input()
 * FormHelper::generateAreaDiv() see FormHelper::input()
 * FormHelper::generateSelectDiv() see FormHelper::input()
 * FormHelper::generateSubmitDiv() see FormHelper::input()
 * FormHelper::generateFields() see FormHelper::input()

libs/view/helpers/html.php
 * HtmlHelper::file() see FormHelper::file()
 * HtmlHelper::submit() see FormHelper::submit()
 * HtmlHelper::selectTag() see FormHelper::select()
 * HtmlHelper::formTag() see FormHelper::create()
 * HtmlHelper::linkEmail() see HtmlHelper::link()
 * HtmlHelper::dayOptionTag() see FormHelper::day()
 * HtmlHelper::yearOptionTag() see FormHelper::year()
 * HtmlHelper::monthOptionTag() see FormHelper::month()
 * HtmlHelper::hourOptionTag() see FormHelper::hour()
 * HtmlHelper::minuteOptionTag() see FormHelper::minute()
 * HtmlHelper::meridianOptionTag() see FormHelper::meridian()
 * HtmlHelper::dateTimeOptionTag() see FormHelper::dateTime()

libs/view/helpers/javascript.php
 * JavascriptHelper::linkOut() see JavascriptHelper::link()

libs/view/view.php
 * View::setLayout() use $this->layout in your view

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4981 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 08:07:19 +00:00
phpnut
7cdb495068 Adding fix for #2428 fixes View::renderElement() behavior with multiple view paths
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4908 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 03:33:37 +00:00
nate
bb8c52dac0 Fixing display of core error messages
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4877 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-18 16:39:11 +00:00
phpnut
c20a8c80f3 Corrected view tests.
Added fix for Ticket #2245
Refactored loading of components and helpers to allow for use of dot notation with plugins.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4659 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-23 10:34:21 +00:00
gwoo
2f3d8d154a fixing loadHelpers on renderElement, fixes Email too
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4650 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-23 00:25:27 +00:00
nate
5e0de9b90e Fixing unique script check in View::addScript() (Ticket #2262), and adding View test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4645 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-22 00:37:45 +00:00
gwoo
7ff6ac5bcb updating themeView for 2225, fixing layout paths noticed when using email component
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4624 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-16 20:36:24 +00:00
nate
261ff6f219 Adding View::uuid() to generate DOM IDs, updating HTTP headers in View::error(), and fixing code formatting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4610 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-14 18:28:36 +00:00
gwoo
d28aaae113 adding caching for elements
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4602 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-09 04:50:45 +00:00