Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Category extends Controller {
- function Category()
- {
- parent::Controller();
- $this->load->model('categories');
- }
- function index()
- {
- $query = $this->db->get("abadoo_categories");
- foreach ($query->result() as $row) {
- echo $row->name;
- echo $row->lower_name;
- }
- $this->load->view('category_list', $query);
- }
- }
- ?>
Add Comment
Please, Sign In to add comment