I think I understand what you want to do. You want to use Cake to create an equivalent of phpMyAdmin ?
I wasn't able to find it quickly, but I'm sure u could find in the API http://api.cakephp.org/1.2/ the functions in Cake that would let get the list of tables in a database. You could then use that information to create a model on the fly. I would explore the classes like "DboMysql" in the API. But just getting the list of tables in a database might not be enough, you're missing the relationship between the table, the foreign keys and other info like "auto increment" ID field (unless all the databases managed by the system follows some type of convention like Cake). If you really want to make it an universal tool, you would need to find a way to connect to the "metainfo" about that database and use that info to construct your model on the fly. For example, on MySQL, you have the database "information_schema" that contains all the info about the other databases. But it would need to be done individualy for each database type you want to connect to. Hope this helps a little. On Nov 23, 7:11 am, "alex.tomes" <[EMAIL PROTECTED]> wrote: > Don't get me wrong, I love cake, I just wanted to use it for this app > also, but maybe I nead something with a lack of model. Thank you for > your advice. :) > > On Nov 23, 1:16 pm, AD7six <[EMAIL PROTECTED]> wrote: > > > > > If you want to use CI, that's your choice. Perhaps the more fluid > > (lack of) structure in the model arena will better suit what you want > > to do. > > > Personally I'm always suspicious as to the motivation of messages > > which sound a bit "if I can't do x with cake, I'll do it with CI/other > > framework/just php". Especially when it's something you can do with > > whatever framework (or not) you choose. <- hint. > > > However, you have to do some thinking for yourself ;). > > > AD- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
