[eluser]swetha[/eluser]
The following are the code snippets..
Code:
/*export_view.php*/
<?php foreach($q as $row)
print $row->fest_id;
print $row->fest_name;
?>
<a >fest_id?>/<?=$row->fest_name?>">Export</a>
/*export.php -- controller*/
function event_list()
{
$this->load->model('admin/export_model');
$data['q']=$this->export_model->backup();
$this->load->view('admin/export_view',$data);
}
function export_contacts($fest_id='',$fest_name='')
{
$this->load->database();
$this->load->plugin('to_excel');
$this->db->use_table('contacts');
$this->db->select('*');
$query = $this->db->query('SELECT * FROM contacts where fest_id=$fest_id');
$filen=to_excel($query,$fest_name);
}
/*export_model.php*/
function backup()
{
$this->load->database();
$q=$this->db->get('fest');
return $q->result();
}
What is it that is wrong with this that I face the page not found error?? Need quick help..
Url where i get a 404 error :
http://localhost/admin/export_contacts/1/fiesta