Blogmer beta 2


Pages_model

Pages_model is used to create and manage page.

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

Functions:

page_id : uses for navigation in pagination

post_id : represents page id

Pages_model Function Reference

$this->Pages_model->create_page()

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

$this->Pages_model->edit_page($post_id,$page_id)

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

$this->Pages_model->delete_page($post_id,$page_id)

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

$this->Pages_model->list_pages($pageid)

Show the all post entries into a tabular form with values

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

Final Collection

$this->load->model('Pages_model');
$this->Pages_model->create_page();
$this->Pages_model->edit_page($post_id,$page_id);
$this->Pages_model->delete_page($post_id,$page_id);
$this->Pages_model->list_pages($pageid);