the best way i found to use generateFieldnames was to do something like
this:
$fieldnames = $this->requestAction("Posts/generateFieldNames");where, Posts would be the controller for the Post model. That way I can choose which model i want (by using the model's controller ). The only thing I am not sure is how CakePHP handles generateFieldNames if the controller "uses" more than one table. hope that helps, dave additional links: http://api.cakephp.org/class_controller.html#56716b2db0b46b240ea137f3a7c43a69 http://www.thinkingphp.org/2006/06/04/yummy-cakephp-functions-you-should-know-about/ D. wrote: > I'm using multiple models in one controller, now i'm using > generateFieldNames to implement some quick and dirty CRUD actions but > this does only work for one model. > I checked out the source files and noticed generateFieldNames uses > $this->modelClass to find out what model to use. Isn't it an idea to > let the user decide what model to use when calling generateFieldNames > or am i totally wrong here? If so, please guide me in the right > direction. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
