Blogmer beta 2


Posts_model

Posts_model is used to create and manage posts (blog).

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

Functions:

Posts_model Function Reference

$this->Posts_model->create_blog()

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

$this->Posts_model->edit_blog($post_id,$page_id)

Grab the posted data using input class. Updates an already existing data entry of id $post_id .

$this->Posts_model->delete_post($post_id,$page_id)

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

$this->Posts_model->list_posts($pageid)

Show the all post entries into a tabular form with values

Posted Date | Post Title | Status | View | Edit | Delete

Final Collection

$this->load->model('Posts_model');
$this->Posts_model->create_blog();
$this->Posts_model->edit_blog($post_id,$page_id);
$this->Posts_model->delete_post($post_id,$page_id);
$this->Posts_model->list_posts($pageid);