In the MVC paradigm, data all goes through all three, and while you can write the code to output the iCal directly from the Model, it really isn't following MVC.
The model simply abstracts the data from the database. Your controller then does the "business logic", in this case making sure you have the right bits of data, then the view would output your iCal. You might want to google outputting data from a view, I saw a post not too long ago about doing that. Basically you need to add some logic to tell the view it's is going to output a different type than HTML (along with mime type and file name if you're sending it across the web). On Nov 10, 9:05 am, fred <[EMAIL PROTECTED]> wrote: > Hello, > > I am new to CakePHP and MVC. I have created models to access a MySQL > database. Perfect. Now I need to export some date in an iCal file > format. I was wondering where to place that code in order to respect > the MVC paradigm : in a controller or in a model? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
