![]() |
Help Related Products - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Help Related Products (/showthread.php?tid=42848) |
Help Related Products - El Forum - 06-21-2011 [eluser]Fr334Ever[/eluser] Hi there , I'v made a controller , a model and a view for my site and base on those I wanth to make related products , I'v tried anything but it osen't work. Please help me ! 10x ![]() PS : I will atach my controller module and view !!!! Help Related Products - El Forum - 06-21-2011 [eluser]cahva[/eluser] I downloaded the zip, checked those files but lost interest as I got better things to do than review your whole code and not knowing what is the real problem you're having ![]() For the simplest, adding related products is quite simple. You create a table for it for example products_related with 2 fields, product_id and related_id and create a relation between the products using those. Then use that data as you wish. For example create a method get_related($id) to your products model which will return all related products to that id you pass to it. |