Welcome Guest, Not a member yet? Register   Sign In
Multiple actions in codeigniter view.

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 .

[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.

thanks , ive checked it in the CI wiki and it seems to be what i need! .. (i hope soTongue)
Really thank you Smile

Theme © iAndrew 2016 - Forum software by © MyBB