[eluser]Mohammed Zayan[/eluser]
Hi There
I have a contact us page
- I have no error on local. The error only on server
this is my controller code
Code:
function contact_us(){
$this->load->helper('form');
$current_lang = $this->config->item('language');
$this->lang->load('main', $current_lang);
$data['slides'] = $this->site_model->get_slides();
$data['page_content'] = $this->pages_model->get_contact_us();
$data['main_content'] = 'pages';
$data['foot_links'] = $this->site_model->get_foot_links();
$data['contact_page'] = 'contact';
$this->load->view('includes/template', $data);
}
and the
includes/template code is
Code:
$this->load->view('includes/header');
$this->load->view('includes/navbar');
$slide = '';
if(isset($slides)){$slide['slides'] = $slides;}
$this->load->view('includes/slide', $slide);
$this->load->view('includes/menu');
$data = '';
if(isset($home_content)){foreach($home_content as $content){$data['home_content'] = $content->content; $data['home_photo'] = $content->photo;}}
if(isset($news)){foreach($news as $new){$data['last_news'] = $new->last_news; $data['news_photo'] = $new->photo;}}
if(isset($photos)){$data['photos'] = $photos;}
if(isset($page_content)){foreach($page_content as $c){$data['title'] = $c->title; $data['content'] = $c->content;}}
if(isset($team_content)){$data['team_content'] = $team_content; $data['title'] = "team";}
if(isset($contact_page)){$data['contact_page'] = true;}
$this->load->view($main_content, $data);
$social_links = '';
if(isset($foot_links)){foreach($foot_links as $link){$social_links['face'] = $link->facebook; $social_links['twitt'] = $link->twitter; $social_links['tube'] = $link->youtube; $social_links['google'] = $link->googleplus;}}
$this->load->view('includes/footer', $social_links);
and the
pages code I want to put it in attachments but I have this message
The file could not be written to disk.
so I put it
here &
here
and this is the
log file
This is a photo from the page online
http://im33.gulfup.com/5QKK1.jpg
and this is a photo from page on local
http://im33.gulfup.com/fcqd2.jpg
This is the
contact us page online
Where is my wrong???