Hi, This question is about implementing MVC in Cake.
In every example I found that there exists separate view for each and every controller (model). In my site, I have created one element and embed this to the layout. In that element I want to display some calculated values (Eg:- From sales model I will get total sales amount for the month, from products model I will get the number of products etc etc ) produced by different models. I will send some condition from their controller to the model. How I can I get these values in my view ? I found that requestAction is not required for getting small database values. Can I create object of controller/model from the view and call those functions ? If I create the objects of the model from the model I need to send some conditions (SQL) from the view.If I did these things whether it will deviate from MVC pattern ? Please tell me the best solution to do this.... If I am wrong please guide me... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
