#5650: Helper callbacks should be inside the rendering buffers
----------------------------+-----------------------------------------------
    Reporter:  dho          |         Owner:     
        Type:  Enhancement  |        Status:  new
    Priority:  Medium       |     Milestone:     
   Component:  Helpers      |       Version:     
    Severity:  Normal       |    Resolution:     
    Keywords:               |   Php_version:  n/a
Cake_version:  1.2.0.7774   |  
----------------------------+-----------------------------------------------
Comment (by rafaelbandeira3):

 Mark, actually, by default, beforeRender, and therefor afterRender, are
 not called on layout nor element rendering. For elements one should do so
 for this to happen:
 {{{
 echo $this->element('my_supra_cool_element', $data, true);
 }}}
 where the third param is $loadHelpers, and specifies werther models should
 be loaded or not.

 For layouts, they will only be called if helpers aren't already loaded and
 View::$helpers isn't empty.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5650#comment:3>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to