DMZ 1.7.1 (DataMapper OverZealous Edition) |
[eluser]PoetaWD[/eluser]
[quote author="OverZealous" date="1270440849"]@Poetawd That looks great! Your example works really well. [/quote] Its not really a extesion YET... just a example controller... I will improve it more and I will sure make a extension out of it! I will also re-check the JSON being output. It really means A LOT for me you saying that my example looks good... My plans for the extension: #1 - Automatically add the GRID in the view file (JavaScrits and HTML markups). Example: The user would just need to do like this: Code: <?php echo $obj->grid_generate() ?> #2 - The user would specify what columns he wants in the grid passing a array Example: Code: $obj->grid_columns(array('engine' => 'Rendering Engine','browser' => 'Browser','platform' => 'Platform(s)','version' => 'Engine Version')); #3 - He would also be able to add a column to the existing column array using this method: Example: Code: $obj->grid_add_columns('grade', 'CSS Grade'); #4 - Add custom column DATA. The user might want to add data that is not acctually in that object table, something like a property from a related object; Example: Code: $obj->grid_add_related_column('developer','name','Developer Name') Code: $obj->grid_add_custom_column('SOMETHING') #5 - Add support for other grids like: jqGrid, extjs Grid, dijit Grid... Example: Code: $obj->set_grid_type('dijit'); I think that would make a good extension... what do you think ? Any other Ideas? Do you think that it would be WASTE of my time? EDIT: I dont really know how to do it, I would have to study some dmz examples to do it.. and, of course, get some help from you. Thanks |
Welcome Guest, Not a member yet? Register Sign In |