A controller is tied to its model. A controller can't really update models that don't share the controller's name. This seem to be a not yet implemented feature in CakePHP.
Problem: Controller::$uses makes other models accessible but other methods don't take these models into account. This due to the use of Controller::$modelName wich is initialised to the controllers name. (I tought requestAction() solved my problem, but there isn't a way to pass data to it.) Affects: invalidate(), cleanUpFields(), ... (a search inside controller for 'modelName') Solution: setModelInUse(); or take into account the models in $uses. (requestAction($url, $extra, $formdata); ) Has anyone else encoutered these problems? It doesn't seem workable. $uses already takes into account more models. Thanks in advance for the positive response. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
