#5757: Calling unique action render from within view only works once ----------------------------------------+----------------------------------- Reporter: nytoboston01 | Type: Bug Status: new | Priority: High Milestone: 1.2.x.x | Component: General Version: RC2 | Severity: Normal Keywords: view render hsaRendered | Php_version: n/a Cake_version: | ----------------------------------------+----------------------------------- Calling $this->render multiple times (with unique actions) in the same view only works once.
Example: <?php print $this->render('/users/login', 'ajax'); print $this->render('/users/start_shift', 'ajax'); print $this->render('/users/end_shift', 'ajax'); ?> Expected result: <users_login_content/><users_start_shift_content/><users_end_shift_content/> Actual results: <users_login_content/>11 The reason for the trailing 1's (true's) is that view:render punts on the conditional $this->hasRendered. $this->hasRendered should only be set true for *unique* actions. This would allow multiple unique actions to be rendered within a single view. Attached is a patch. It is probably slightly outta whack, but you'll get the idea. -- Ticket URL: <https://trac.cakephp.org/ticket/5757> 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 tickets-cakephp@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---