public function halaman()
{
$halaman = new grocery_CRUD();
$halaman->set_theme('datatables');
$halaman->set_table('halaman');
$halaman->columns('title','author','date','content','status');
$halaman->set_relation('author','user','user_nama');
$halaman->callback_before_insert(array($this,'seo'));
$output = $halaman->render();
$this->view($output);
}
function seo($post_array) {
//$this->load->library('url');
$post_array['url_title'] = url_title(post_array['url_title']);
return $post_array;
}
if there any error whit my call back
i try change
$post_array['url_title'] = url_title(post_array['url_title']);
to
$post_array['url_title'] = "tes";
work like a charm.
all i want to do is to make clean url using url_title from
http://codeigniter.c...url_helper.html
thanks and sorry for my bad english