[eluser]Publisher1[/eluser]
I sometimes have trouble with codeigniter, here I am again. Can you maybe give me tips?
I have a View that would show my 'products’ in my project. Initially I had the pages for the inserting, editing and deletion of the products into separate controllers, models and views. The controller logics then each was all just in the index () method.
Some big methods I needed in all models. To not copy paste large code several times I got the idea for this functionality to move all in one controller, model and view. So I had made methods for inserting, editing and deletion.
But now I do not know how to do that in the view. How should I tell the view which content for example on products/insert he has to show only the datas from the method insert()? and products/delete only the datas of the metod delete() etc? How can I implement all this in a view?
Or do you suggest me something else?
Thank you in advice!