I need to retrieve the schema of the fields associated with a model. I know there's the _schema property but I don't know how to access it. The problem is I need the schema inside the controller and I want a list of the fields of any of the models.
I'm creating a page where the user can select one of the models and, using ajax, another select box gets filled with the fields of that model. I used Configure::listObjects('model') to get the list of the models but I don't know what to do now. I tried with loadModel($selectedModel); $this->$selectedModel->_schema but this syntax is wrong in php (and I don't know php classes well). I can't use php 5 syntax. Thank you for any suggestion. maxx --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---