content_model->update(method::post());} View::id($id)->get('edit'); //import::view('content/content_edit',$data); } function delete(){ $id = Uri::get('delete'); DB::where('id', $id)->delete('content'); redirect('content'); } function new(){ if (method::post()) { $this->content_model->new(method::post()); } View::userid(Session::select('userid')); } function copy(){ $id = Uri::get('copy'); if (method::post()){$this->content_model->new(method::post());} View::id($id); } function category(){ } function categoryEdit(){ $id = Uri::get('categoryEdit'); if (Method::post()) { $this->category_model->update(Method::post()); } view::id($id); } function categoryNew(){ if (Method::post()) { $this->category_model->new(Method::post()); } } function categoryDelete(){ $id = Uri::get('categoryDelete'); DB::where('id',$id)->delete('content_category'); redirect('blog/category'); } }