for how to automatically create tables if they'er not present. I
couldn't find anything about the CakePHP method of doing this.
Automatic table creation seems like something that should be built
into the bake script??
http://book.cakephp.org/view/456/query should help - it looks like you
can take the MySQL dump, add "IF NOT EXIST" and put it in a query. It
looks like the simplest thing to do would be to put the query in the
constructor - instead of checking if the table exists, try to create
it. I'm wondering if there's a way to get the affected rows in a
table creation, if there's 0 affected rows, you know the table exists
and can skip any other table creation queries (assuming that all the
tables are created at once).
Also, I was looking for applications written in Cake so I could see
how they handled it. I can't seem to find ANY applications except
http://www.fileshifter.se/en/index.html (1,399 Euros!) Is there a
good list of cake applications somewhere?
Thanks!
On Sep 25, 3:10 am, "Gotzon Astondoa" <gaston...@gmail.com> wrote:
> I´m also interested in this, but have no idea. I´m new to Cake.
> Nobody has a suggestion?
>
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment