#6034: FormHelper not working when called inside <cake:nocache>
--------------------------+-------------------------------------------------
Reporter: chanon | Type: Bug
Status: new | Priority: Medium
Milestone: 1.2.x.x | Component: General
Version: 1.2 Final | Severity: Normal
Keywords: | Php_version: n/a
Cake_version: |
--------------------------+-------------------------------------------------
When FormHelper is used inside <cake:nocache> in a page where view caching
is enabled, the following is output:
Notice (8): Undefined property: stdClass::$model
[CORE\cake\libs\view\helper.php, line 328]
Notice (8): Undefined property: stdClass::$association
[CORE\cake\libs\view\helper.php, line 361]
Notice (8): Undefined property: stdClass::$field
[CORE\cake\libs\view\helper.php, line 361]
More info here:
http://groups.google.com/group/cake-
php/browse_thread/thread/3ad96f4680bf0211/5037e35ef4ff8273
http://groups.google.com/group/cake-
php/browse_thread/thread/910a4fdaf06741e4/c147427e90af1788?lnk=gst&q=maeto#c147427e90af1788
So right now in 1.2 Final you can't do view caching on any pages which
have forms created using FormHelper.
Only current workaround is to handcode all form tags instead.
--
Ticket URL: <https://trac.cakephp.org/ticket/6034>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---