Usually in your view file corresponding to the form you'll have 
something like:
<?php echo $html->hidden('Post/id'); ?>

So the method knows what is the right id. If you wanna to change it u 
can use $this->Model->id = $someintegervalue;

Does this answer your question ?

olivvv

[EMAIL PROTECTED] wrote:
> ok- so how does save() know to to save to the post table and save the
> title and body fields for a specific id?
>
> I dont understand the abstraction for getting data from a form into the
> database and then displaying whats in the database in the view again.
>
> One thing i should mention is- i am pulling specific rows based upon
> the id and updating a specific field in that row with data from a form.
>
> configuration_id | configuration_title | configuration_key |
> configuration_value
> -------------------------------------------------------------------------------------------------------------
>            1                 |     Store Name     |   STORE_NAME  |   
> osCommerce
>            2                 |  E-Mail Address   | EMAILADDRESS |
> [EMAIL PROTECTED]
>            3                 |    Store Owner     |  STORE_OWNER |    Harald
> Ponce de Leon
>
> I need to retrieve the configuration title information and config value
> for rows 1-3 and display them in the view- when the user posts the form
> i need to be able to update the update the config_values for rows 1-3.
> Is there a standard way of doing this?
>
>
>
> Thanks again
>
>
> >
>
>   


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

Reply via email to