![]() |
including 3 model methods results in one controller and one 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: including 3 model methods results in one controller and one view (/showthread.php?tid=48193) |
including 3 model methods results in one controller and one view - El Forum - 01-07-2012 [eluser]Unknown[/eluser] Hello i have a view with table to view all records , and its get the results form a controller which contact a model method then send results as array to the view. controller gallery ==================== Code: function category() //view images categories Model gallery_model =================== Code: function cat_get_records($limit,$start) view ===== Code: <?php foreach($results as $item){ ?> how can i change the value of Code: <td><?php echo $item->category_parent_id ;?></td> also how can i get the results of another model method which its: Code: function cat_images_record_count($id) // RETRIVE images/itesm/ COUNT for an category i need all of them form one controller !! please check the attached image for more understanding . Thank you very much in advance |