Thanks very much Jon, your approach worked like a charm.

Your helper is very elegant.

A couple of (very) small suggestions looking forward to cake v1.2:

You might consider making it a behavior instead of a helper:

Does a generateList on the tags, and a separate find (recursive=1) on
posts, then adds a boolean field 'checked' which is true if the
in_array() is true. So, it would return (id, tagname, checked).

We would only need the existing cake checkbox helper, using the
checked boolean from the behavior to set the 'checked' attribute on
the checkbox.

You would need less code in the controller, and you would have more
flexibilty on formatting  the output,  so you could decide if you
wanted the checkboxes as <p>'s or as a 2 column table, or a 3 column
table, etc. Just call the cake checkbox helper for each cell.

Anyways, many thanks again - your clear thinking helped me over a
hump. I appreciate it.


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