correct,, i just have a problem do not how to solve On Aug 14, 5:01 pm, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > > Can I access database or execute some sql inside views ? > > Given that this is PHP, yes I dare say you can. > > The point though is that you shouldn't. Perform your queries and > business logic in your Controller and Model. Pass the resulting data to > your view to render. That is all that your view should be doing. > > If you really want to break this rule, then why use Cake? You may as > well just use vanilla PHP. > > Regards, > Langdon
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
