Blogmer beta 2


Categories_model

Categories_model is used to create and manage categories

Beta:  This is an Beta model. It can be changed anytime.

Functions:

Categories_model Function Reference

$this->Categories_model->save_category()

Capture the posted data using input class. Store this data into database. No argument.

$this->Categories_model->edit_category($cat_id,$page_id)

Grab the posted data using input class. Updates an already existing data entry of id $cat_id and redirects it to $page_id .

$this->Categories_model-> delete_category($cat_id,$page_id)

Deletes an already existing data entry of id $cat_id and redirects it to $page_id

$this->Categories_model->list_categories($pageid=1)

Show the all post entries into a tabular form with values.It returns a table based data.

Category ID | Category | Edit | Delete

Final Collection

$this->load->model('Categories_model');
$this->Categories_model->save_category();
$this->Categories_model->edit_category($cat_id,$page_id);
$this->Categories_model-> delete_category($catid,$page_id);
$this->Categories_model->list_categories($pageid=1);