Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class test {
- public function show($id) {
- $this->$load->$model('news_model');
- $news = $this->news_model->get_news($id);
- data['title'] = news['title'];
- data['body'] = news['body'];
- $this->$load->$view('news_article', $data);
- }
- }
- echo show(1);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement