On Mon, Mar 30, 2009 at 8:17 AM, Martin Westin
<[email protected]> wrote:
>
>
> That sounds like a lot of work just to avoid using html. If you are
> concerned about CakePHP coding standards (do they exist?) you should
> definitely not be thinking about hacking the core files. Creating
> "manual" form elements must be way better than editing files in the
> core.
>
> Even using different names for each group of boxes and merging them in
> the controller or model must be better than modifying the core.
>
>
> I am still not clear about why you need to call the select multiple
> times. The only situation that would require you to call it twice is
> some layout issue you need to adress. Like:
>
> div
> checkbox
> checkbox
> /div
> div
> checkbox
> checkbox
> /div
> ...
>
> That is the only situation I can think of that can't be handled by a
> single select. It would be interesting to hear about it.

Yes, that seems to be the problem keyur is addressing--how to split up
the group of checkboxes across the page. My first thought was that
this might be better dealt with through a change in model/association
but I think I understand the problem better now.

Creating a helper would, of course, be much better than hacking the
core, but your idea of creating separate checkbox groups and merging
the results in the controller seems reasonable, also.

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