![]() |
Help with basic CRUD (create and edit) (with datamapper) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Help with basic CRUD (create and edit) (with datamapper) (/showthread.php?tid=27753) |
Help with basic CRUD (create and edit) (with datamapper) - El Forum - 02-19-2010 [eluser]NachoF[/eluser] How do you usually manage CRUD in your app? The way I see it, there should be two methods for create and two for edit....one to simply display the form and the other one to actually create it after forms been submited... but php doesnt support overload of methods so they should be named differently... how do you usually handle this?? right now what I have is this but I would appreciate some tips on how to improve my method cause it just looks ugly. Code: function Create() |