/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php class Snippets extends Controller { function Snippets() { parent::Controller(); $this->load->model('Snippet'); } function index() { $data["query"] = $this->db->get('snippets'); $data['title'] = 'My page title'; $data['footer'] = "Copyright: Matt Stopa 2010"; $this->table_display->set_headers($headers); $this->table_display->set_query($data["query"]->result()); $this->template->load('template', $partials, $data); //$this->template->load('template', 'about'); } function mah () { } } ?>
Comments
