![]() |
Multiple actions in codeigniter view. - 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: Multiple actions in codeigniter view. (/showthread.php?tid=26615) |
Multiple actions in codeigniter view. - El Forum - 01-18-2010 [eluser]Unknown[/eluser] Hi im very new in codeigniter so maybe is a dumb question: can someone explain me how to make a add-edit-delete for projects(projects have id and name, just that) + image upload (where each image belongs to one "project") in just one view ? I cannot realize how to make upload in that view where i manage projects with codeigniter. I need to upload images in a lot of views, and i dont want to repeat the code in each controller . Thanks Multiple actions in codeigniter view. - El Forum - 01-19-2010 [eluser]Ian Jones[/eluser] Search the forum for 'modular controllers' and 'HMVC'. You can always use a PHP include('commonfunction.php') in your controller or view which needs a commonly repeated function / element. I haven't had any problems with this solution, but it is probably not the most elegant. Multiple actions in codeigniter view. - El Forum - 01-19-2010 [eluser]Unknown[/eluser] thanks , ive checked it in the CI wiki and it seems to be what i need! .. (i hope so ![]() Really thank you ![]() |