site_model->admin(2); $d['news'] = $this->site_model->getnewslimited(); $d['recipes'] = $this->site_model->getrecipeslimited(); $d['products'] = $this->site_model->products(); $d['productslatest'] = $this->site_model->productslatest(); $d['products_h'] = $this->site_model->products_header(); $d['products_sub'] = $this->site_model->get_products_sub_cat(); return $d; } function index(){ $d = $this->common(); $d['kat'] = $this->site_model->gethomepageproduct(1); $d['mayo'] = $this->site_model->gethomepageproduct(2); $d['must'] = $this->site_model->gethomepageproduct(3); $d['suces'] = $this->site_model->gethomepageproduct(4); $d['veg'] = $this->site_model->gethomepageproduct(5); $d['dynamic'] = $this->site_model->dynamic(1); $this->load->view('index',$d ); } function aboutus(){ $d = $this->common(); $d['dynamic'] = $this->site_model->dynamic(1); $d['ip'] = 'about_us'; $this->load->view('temp',$d); } function vision(){ $d = $this->common(); $d['dynamic'] = $this->site_model->dynamic(2); $d['ip'] = 'about_us'; $this->load->view('temp',$d); } function history(){ $d = $this->common(); $d['dynamic'] = $this->site_model->dynamic(3); $d['ip'] = 'about_us'; $this->load->view('temp',$d); } function contact(){ $d = $this->common(); $d['ip'] = 'contactus'; $this->load->view('temp',$d); } function recipes(){ $d = $this->common(); $d['count'] = $this->site_model->getreci(); $d['ip'] = 'recipes'; $this->load->view('temp',$d); } function recipesdetails($id){ $d = $this->common(); $d['recipesd'] = $this->site_model->getrecidetails($id); $d['ip'] = 'recipes_details'; if(!empty($d['recipesd'])){ $this->load->view('temp',$d); }else{ $this->load->view('404'); } } function news(){ $d = $this->common(); $d['count'] = $this->site_model->getnews(); $d['ip'] = 'news'; $this->load->view('temp',$d); } function products(){ $d = $this->common(); $d['dynamic'] = $this->site_model->dynamic(4); $d['ip'] = 'product'; $this->load->view('temp',$d); } public function product_details($id='',$sub='',$pack=''){ $d = $this->common(); $d['details_pro']=$this->site_model->products_item($id); $d['products_desc']=$this->site_model->products_desc($id); $d['products_pack']=$this->site_model->products_pack($id); $d['title2']=$this->site_model->title_desc($id); $d['subcat']=$this->site_model->products_sub_count($id); $d['sub_cat_title']=$this->site_model->products_sub_cat($id); $d['gallery']=$this->site_model->gallery_product($id); $d['products_pack_count']=$this->site_model->products_pack_count($id); $d['ip'] = 'product_details'; if(!empty($d['details_pro'])){ $this->load->view('temp',$d); }else{ $this->load->view('404'); } } public function product_sub_details($id='',$sub=''){ $d = $this->common(); $d['details_pro']=$this->site_model->products_item($id); $d['products_desc']=$this->site_model->products_desc1($id,$sub); $d['products_pack']=$this->site_model->products_pack($id); $d['title2']=$this->site_model->title_desc($id); $d['subcat']=$this->site_model->products_sub_count($id); $d['gallery']=$this->site_model->gallery_sub($sub); $d['sub_cat_title']=$this->site_model->products_sub_count1($id,$sub); //print_r($d['sub_cat_title']); //exit; $d['products_pack_count']=$this->site_model->products_pack_count($id); $d['ip'] = 'product_sub_cat'; if(!empty($d['details_pro'])){ $this->load->view('temp',$d); }else{ $this->load->view('404'); } } public function getnewsmore_data($last=''){ $d['i']=$last; $d['newsmore']=$this->site_model->getnewsmore_data1($last); $this->load->view('newssource',$d); } public function getrecmore_data($last=''){ $d['i']=$last; $d['newsmore']=$this->site_model->getrecmore_data1($last); $this->load->view('recsource',$d); } public function newsdatails($id){ $d = $this->common(); $d['details']=$this->site_model->newsdetails($id); $d['ip'] = 'new_details'; if(!empty($d['details'])){ $this->load->view('temp',$d); }else{ $this->load->view('404'); } } function contactusform(){ $this->load->library('form_validation'); $this->form_validation->set_rules('name', 'Fullname', 'trim|required|min_length[1]'); $this->form_validation->set_rules('email', 'Email', 'required|valid_email'); $this->form_validation->set_rules('sub', 'sub', 'required|trim'); $_data["name"]=$this->input->post("name"); $_data["email"]=$this->input->post("email"); $_data["subject"]=$this->input->post("sub"); $_data["message"]=$this->input->post("msg"); //////////////////////////////////////////// if ($this->form_validation->run() == FALSE) { echo 'All fields are required.'; } else { echo '
Your form was successfully submitted!
'; $this->db->insert('contactform',$_data); $this->load->library('email'); $condition=array('admin_id'=>2); $admin_data = $this->fct->getonecell("admin","email",$condition); $m = "
The following user has submitted the contact form

"; $m .= "
First name ".$_data["name"]."
Email ".$_data["email"]."
Subject ".$_data["subject"]."
Message ".$_data["message"]."
"; $config= Array( 'mailtype' => 'html' ); $this->email->initialize($config); $this->email->set_newline("\r\n"); $this->email->from($_data["email"], $_data["name"]); $this->email->to($admin_data); $this->email->subject('contact form'); $this->email->message($m); $this->email->send(); } } }

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /vhost/vhost14/d/o/l/dollys.net/www/application/controllers/temp.php:179)

Filename: core/Common.php

Line Number: 414

404 Page Not Found

404 Page Not Found

The page you requested was not found.