Less code. You don't need any component like you have written.
Also, one thing I don't see which you should think about.. what if you
don't want to display all of the fields of the Model, maybe just some
of them, or what if you want some columns to be fields from other
models. Of course there is the other thing of adding in config options
for the grid itself. Like if you want a different selection model or
something. Then of course this is handling grouping and editable
grids. Lot to handle.
I dunno, I came up with my solution, it breaks MVC rules and uses a
few conventions, but it works.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment