I think its in two parts a component & then with the views the helper and you make these two work in tandem; since these are coupled a plugin with a comp & helper might be the way
- S 2009/11/13 Jeremy Burns <[email protected]> > Yup - I've got that, but the data I want to access is outside of the > current MVC - it's navigation based so data so system wide. I'd call this > function from just about every MVC, so want to put it in one place (DRY). > > Jeremy Burns > [email protected] > > On 13 Nov 2009, at 15:47, Marcelo Andrade wrote: > > > On Fri, Nov 13, 2009 at 12:38 PM, Jeremy Burns <[email protected]> > wrote: > >> Thanks - can a helper interrogate the database (which is a key > requirement)? > > > > According to MVC, this is extremelly not recommended. > > You should query the database in your controller and just > > pass the fetched results to your view. > > > > Best regards. > > > > -- > > MARCELO DE F. ANDRADE > > Belem, PA, Amazonia, Brazil > > Linux User #221105 > > > > -- > > > > 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]<cake-php%[email protected]> > . > > For more options, visit this group at > http://groups.google.com/group/cake-php?hl=. > > > > > > -- > > 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]<cake-php%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/cake-php?hl=. > > > -- 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=.
