codeigniter_test/application/controllers/blog_post.php

22 lines
428 B
PHP
Raw Permalink Normal View History

2020-01-02 22:49:45 +07:00
<?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);
}
}