Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function get_popular_products(){
- $popular_data = $this→db→query(‘SELECT …. ’)->result_array();
- return $popular_data;
- }
- $this->load->model("Popularproduct_model");
- $popularproducts = $this→Popularproduct_model→get_popular_products();
- array(3) {
- [0]=>
- array(34) {
- ["id"]=>
- string(1) "3"
- ["title"]=>
- string(13) "Patchouli Oil"
- ["slug"]=>
- string(15) "patchouli-oil-3"
- ...
- $this->load->view('index', $data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement