![]() |
CI URI Problems and Using Extjs Grid - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: CI URI Problems and Using Extjs Grid (/showthread.php?tid=21098) |
CI URI Problems and Using Extjs Grid - El Forum - 07-30-2009 [eluser]Fielder[/eluser] For anyone that is familiar with Extjs (grid) and Codeigniter. When I am calling a link Code: <?= anchor('extjs/multistore_list/'.$row['con_id'],'<img id="button_edit" src="../../assets/images/icons/table.png" />'); ?> the link is directing me into my extjs controller and multistore_list function, where I can then run all the logic I need to generate scripts and outputs using the Extjs grid. But I need to pass the con_id parameter into my controller so I can fetch the appropriate contract id. But the link is giving me an error in firebug when clicked Code: http://fieldraid/rtui/codeigniter/index.php/index.php/reports/listMultistores/1/?_dc=1249015745818&xaction=load Here is my controller Code: <?php If you know Extjs, you'll see that I then load up the script containing the Extjs grid code and populate it to a specified element's ID. CI URI Problems and Using Extjs Grid - El Forum - 08-30-2009 [eluser]oldroy[/eluser] Fielder, I was able to solve the same problem by using a data proxy so extjs doesn't send the extra crap on the post. <code> var dataProxy = new Ext.data.HttpProxy({ url: base_url + "index.php/admin/images/ajaxGetImages", method: 'POST' }); ds = new Ext.data.GroupingStore({ proxy: dataProxy, reader: readme, sortInfo: {field: 'aspect', direction: "ASC"}, groupField: 'aspect' }); </code> |