> The generate_browser() function in the controller is where things are
> falling over.
>
> The goal is simply for an uploaded image to have many tags associated
> with it, which the user can enter as comma separated list in a
> textbox.

I can't see anything wrong with your code actually, what is the final
state of $this->data before you save?

Do all your Tags get created correctly?

Your tables are not set in the conventional Cake way, which means you
should be using $displayField in your model constructors to inform
cake what to use for things like 'generateList'.

You might want to try:

// images
id
name (instead of file_name)
created
modified

// tags
id
name
created
modified

Your join table is correct btw

> In the future, I want to be able to search for a Tag and get
> a list of Images with that Tag associated to them. I also just wish to
> be able to get a list of Images (with or without associated Tag data).

to accomplish this you need to create the association in your Tag
model back to images.

Sorry not to be more help!

thanks,

Jon

-- 

jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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