I maintain one hack in my core (used to be a few more during 1.2 pre- release) and it is enough to worry about forgetting even though it is only two lines. Pulling the core with Git has helped tremendously, though. All fast-forwards so far.
If you need to make a "hack" in the core you will save yourself a lot of trouble if you use Git. /Martin On Mar 30, 6:11 pm, brian <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
