Simplerules wrote:
> But how can I use it in a model?
To be perfectly exact: try to rethink Your application structure,
please. If You want Your model will co-operate with some component,
drive this behaviour from controller or from this component - Your
component can implement method
startup(&$controller) {
$this->controller =& $controller;
}
and then in component methods You can call
$this->controller->MyModel->read().....
I'm not sure, but it looks to me like You just want to have access to
controller's model in component, You know ;-)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---