Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public function get_popular_products(){
  2. $popular_data = $this→db→query(‘SELECT …. ’)->result_array();
  3. return $popular_data;
  4. }
  5.  
  6. $this->load->model("Popularproduct_model");
  7. $popularproducts = $this→Popularproduct_model→get_popular_products();
  8.  
  9. array(3) {
  10. [0]=>
  11. array(34) {
  12. ["id"]=>
  13. string(1) "3"
  14. ["title"]=>
  15. string(13) "Patchouli Oil"
  16. ["slug"]=>
  17. string(15) "patchouli-oil-3"
  18. ...
  19.  
  20. $this->load->view('index', $data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement