ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problem with form helper

January 13, 2013 4:58am

Subscribe [1]
  • #1 / Jan 13, 2013 4:58am

    Mohammed Zayan

    79 posts

    Hi There
    I have a contact us page
    - I have no error on local. The error only on server
    this is my controller 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

    $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???

  • #2 / Jan 14, 2013 5:11am

    Mohammed Zayan

    79 posts

    Anyone know what is the wrong with me?

  • #3 / Jan 15, 2013 7:59am

    Mohammed Zayan

    79 posts

    There is a form in the page and it doesn’t appear.
    What is the wrong with my code?!!!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases