It's usually best to have the view render the elements and to pass settings/variables to view that passes it on to the element.... but to every rule there are exceptions.
On Wed, Jul 14, 2010 at 1:52 PM, sanedevil <[email protected]> wrote: > Hi Bakers! > Is it ok to render an element from a controller? Or as a best > practice, let the controller always render the view and then in the > view render the element? > > Thanks! KS > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "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/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "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/cake-php?hl=en
