Have you baked your models/views/controllers? If you have, it should
be working fine. If not and you want to create them by hand, then you
will need to create a view called add.ctp that includes the $form-
>create(), $form->input() and $form->end() functions. Your controller
will need a corresponding add() function, which should contain the
create() and save($this->data) functions. If the data contained in
$this->data (which is collected from the form in your add.ctp file)
passes any validation set in your model, Cake will add the data to
your database. My recommendation is to bake a sample model, controller
and views (in that order) for a single table in your database, then
examine the code it creates. It's the best way to learn. Hope this
helps.

On Nov 12, 2:52 am, ChiCake <[email protected]> wrote:
> I have experience of Codeignitor, but rite now i am learning cake,
> can you please tell how to insert data in cake? i have just go through
> the example give in this group but still not getting

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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=.


Reply via email to