<?php
class Blog extends CI_Controller {
function Blog()
{
parent::__Controller();
$this->load->scaffolding(‘entries’);
}
function index()
{
$data[‘title’] = “My Blog Title”;
$data[‘heading’] = “My Blog Heading”;
$data[‘todo’] = array(‘clean house’,‘eat lunch’,‘call mom’);
$this->load->view(‘blog_view’, $data);
}
}
?>
|
I am a beginner ci framework, what is wrong with this?
|
|
||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
