i've already done that...

what i meant was when i add a comment it will automatically will know
which task i am coming from and will
choose it without me having to choose it

for example:

i am at http://...app/tasks/view/3

pressing on "new note" button will give me the form

title (add here)
note (add text here)

and that's it...
no pull down menu to choose task

makes sense?

thanks

On Jul 8, 2:22 am, GravyFace <[email protected]> wrote:
> If you set up your proper model associations, it should be done
> automatically when you echo $form->input('task_id');
>
> Give the bake console a try first and bake your entire project
> (Models, Views, Controllers) -- it helped me immensely doing it that
> way the second time around vs. slogging through my first app doing
> things from scratch.
>
> On Tue, Jul 7, 2009 at 4:44 PM, menashe morobuse<[email protected]> wrote:
>
> > for example i am having the following db setup...
>
> > tasks
> > id (auto increment) (PK)
> > name
>
> > notes
> > id (auto increment) (PK)
> > task_id
> > text
>
> > the question is how can i pass in the create view the task id and auto
> > fill it...
> > meaning that i won't have to select it via a pull down menu...
>
> > as u probably guess i am a complete noob...
> > so please be gentle :)
>
> > thanks
--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to