[eluser]Unknown[/eluser]
Hey,
I'm using the pagination class and everything works great untill i change the per_page value to a value higher then 10 at that moment my apache crashes and its over and out.
here's my code:
Code:
function display()
{
$grid_params = array(
'set_query' => $this->product_model->get_products(),
'set_multirow_selection' => array(
'enable' => true,
'primary_key' => 'id'
),
'set_pagination' => array(
'enable' => true,
'initialize' => array(
'base_url' => site_url('product/display'),
'per_page' => 10,
'num_links' => 5
),
'order_field' => 'id',
'order_type' => 'ASC',
'offset' => 0
),
'set_column' => array(
'description' => array(
'title' => 'Omschrijving',
'sortable' => true,
'type' => array(
'link',
'href' => site_url('product/edit/{id}')
)
),
'aantal_gekocht' => array(
'title' => 'Aantal Gekocht',
'sortable' => true,
'type' => array(
'text'
)
),
'aantal_in_stock' => array(
'title' => 'In Stock',
'sortable' => true,
'type' => array(
'text'
)
),
'product_type' => array(
'title' => 'Type',
'sortable' => false,
'type' => array(
'text'
)
),
'id' => array(
'title' => 'ID',
'sortable' => true,
'type' => array(
'text'
)
)
),
'set_action' => array(
'enable' => true,
array(
'edit' => array(
'title' => 'Edit',
'type' => array(
'image',
'src' => base_url() . 'public/images/administrator/theme/edit.png'
),
'href' => site_url('product/edit/{id}')
),
'delete' => array(
'title' => 'Delete',
'type' => array(
'image',
'src' => base_url() . 'public/images/administrator/theme/delete.png'
),
'href' => site_url('product/delete/{id}'),
'html_attribute' => array(
'onclick' => "[removed]if(confirm('Sure Want to Delete Permanently ?')) return true; else return false; "
)
)
)
),
'set_filter' => array(
'enable' => true,
array(
'description' => array(
'title' => 'Omschrijving',
'type' => array(
'text'
)
),
'id' => array(
'title' => 'ID',
'type' => array(
'number'
)
)
)
),
'set_export' => array(
'enable' => false
),
'set_print' => array(
'enable' => false
),
'set_debug' => array(
'enable' => false
)
);
$this->ca_gridview->render_grid($grid_params);
$this->ocular->set_view_data('page_title', 'Product List');
$this->ocular->render();
}
I make use of
Happy igniter
Thx in advance