22 lines
428 B
PHP
22 lines
428 B
PHP
|
|
||
|
<?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);
|
||
|
}
|
||
|
}
|