Hi Bakers, I think there's something I'm not getting about the mechanism for passing data in to the view, because my attempts quickly become very hard to read.
I'm frequently passing data from multiple Models and aggregate functions into my views. However, the format returned from Cake's query functions can't easily be traversed to render the page, so needs its structure changed in the Controller to be more usable by the View. However, with more complex pages, converting these multi dimensional arrays I get from queries into a usable form for a view, then iterating through them in the views, makes for highly unreadable and hard to maintain code. What solutions have people come up with to avoid such tricky multi dimensional arrays? I'm considering passing Objects to my view, however that means I have to create classes/interfaces to define the objects I'm going to pass to the view, or create objects on the fly, including their members and methods, which doesn't look fun. Someone must have surely seen this as a problem before, and found a nice way to deal with it? Or is there just something I'm missing? Help!!!!!!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
