What if you have common functionality across several controllers (but not all or most so I don't want to use appcontroller) that involves both database access and html rendering.
Currently I have coded it as a component because it's mainly login and database interaction, even though the html portions should probably be split out as a helper. In my view did a $this->Controller->MyComponent->showstuff(); call Should I create a helper to go with my component? Is there anyway for the component to pass data to the helper behind the scenes? Should my component just do a this->set in startup to pass itself onto the view and then I can call a $MyComponent->showstuff(); there. Need a little help connecting the dots. Thanks, Bryan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
