/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php class Blog extends Controller { function index() { $this->load->model('Blog'); $data['query'] = $this->Blog->get_last_ten_entries(); $this->load->view('blogview', $dog); } function comments($id, $name) { echo "your id is: " . $id; echo "your name is: " . $name; } } ?>