For each of the 2 tables you should have one model.
Then in the controller todos_controller.php you set the class property
$uses to:

var $uses = array('Todolist, 'Todoset');

This gives you the power to use both models in that controller, so you
will be able to do something like:

$this->Todoset->save(....);

$this->Todolist->save(...);



On Oct 14, 2:14 am, afx <[EMAIL PROTECTED]> wrote:
> I am VERY new to php and cakephp so forgive the ignorance.
>
> I am running through a todo list tutorial and everything is going
> great, but I want to be able to create a group of TODOs that live
> under a set.
>
> School
>   - do homework
> Work
>  - do work
> Personal
>  - take out trash
>
> I have a todo list table and a todoset table.
>
> I wrote an add function in todos_controller.php but i'm confused how I
> write the todo set name to one table and the todo item to another. Any
> help would be greatly appreciated!


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