There“s a setting inside of models that dicates the name of the
primary key:

$primaryKey

If this model relates to a database table, and the table's primary key
is not named 'id', use this variable to tell Cake the name of the
primary key.

(http://manual.cakephp.org/chapter/models)

I assume scaffolding will work fine with this set up....

Happy Baking!


On Oct 29, 6:35 am, rhrn <[EMAIL PROTECTED]> wrote:
> Hello everyone!
> Have question. How i can change id field then use scaffold.
>
> by default in scaffold use id filed
> i have tablename_id
>
> thx!


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to