You've already forked codeigniter_test
first commit
This commit is contained in:
21
application/controllers/blog_post.php
Normal file
21
application/controllers/blog_post.php
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
<?php
|
||||
|
||||
class Post extends CI_Controller{
|
||||
|
||||
function __Construct()
|
||||
{
|
||||
parent ::__construct();
|
||||
$this->load->model('M_post');
|
||||
}
|
||||
|
||||
function index($id)
|
||||
{
|
||||
$data['judul']='Page';
|
||||
$data['edit']=$this->M_post->edit_post($id);
|
||||
//$this->load->view('template/header');
|
||||
//$this->load->view('single',$data);
|
||||
//$this->load->view('template/footer');
|
||||
$this->load->view('single',$data);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user