Thanks for your response. As I had no choice that is what I ended up doing. However, the information I was interested in storing was only relevant to the view (i.e. which menu was opened when the user clicked on a link) and only meant for use in the view (reopen the menu that was opened at the time the user clicked). It seems that I have now pushed knowledge of the view into the controller for an entirely arbitrary purpose.
On Friday, June 14, 2013 11:08:57 PM UTC+3, John wrote: > > Your view is there to produce HTML not manipulate data (other than to > display them). The proper MVC way is to do it in the controller and just > pass the required data to the view to render it. > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
