I am finding myself quite puzzled with Cake lately. There is a way to parse extensions like /controller/action/123.ram where the record of 123 would be pulled, and /views/layouts/ram/ default.ctp would be used. However, what if I want to have totally different logic for different file extensions? Like I would like to display a grid of data for normal html view, and render an image using GD if i got a jpg request?
I find that without using dirty hacks on views or regex matching on controllers, I simply can' make it. However in Rails, as I remembered (I didn't really coded in rails), they have something like this, in controller: respond_to do |format| format.html do .... format.jpg do ... Is this kind of more well-formed logic possible in Cake? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
