Guest User

Untitled

a guest
May 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. <?php
  2. class Category extends Controller {
  3. function Category()
  4. {
  5. parent::Controller();
  6. $this->load->model('categories');
  7. }
  8.  
  9. function index()
  10. {
  11. $query = $this->db->get("abadoo_categories");
  12.  
  13. foreach ($query->result() as $row) {
  14. echo $row->name;
  15. echo $row->lower_name;
  16. }
  17.  
  18. $this->load->view('category_list', $query);
  19. }
  20. }
  21. ?>
Add Comment
Please, Sign In to add comment