I just started working with CakePHP today, and I was wondering how to access a model from within a component.
MVC Class Access Within Components (http://book.cakephp.org/view/65/ mvc-class-access-within-compon) talks about how to get access to the current controller, but if I'm using the component from some other controller it also doesn't necessarily have access to the model I want. Am I going about this in the wrong way, or is there some way to solve this? (apart from the hackish / bad <?php include_once("../../cake/libs/model/model.php"); include_once("../app_model.php"); include_once("../models/modelIWant.php"); ?> sort of thing) Additionally, if I need access to multiple Models from within a single Controller, what is the right way to go about this? Thanks, Opblah --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
