Welcome Guest, Not a member yet? Register   Sign In
New to CI - Small bugs in the view
#1

[eluser]amites[/eluser]
Hello,

to jump right to it I'm having trouble with my first CI site and am running into 2 challenges that are giving me trouble

the first is that the CSS is not rendering once I switched from a local windows server to a Linux server

I updated the config.php to reflect the new root URL, I've checked the code and it is rendering the link properly

the other is an error that is showing up with the parser,

Fatal error: Call to a member function parse() on a non-object in /system/application/views/rsvp.php on line 7

which looks like:

Code:
<?php
        $this->load->library('parser');
        $data = array(
            'title' => 'RSVP',
            'header' => ''
            );
        $this->parser->parse('partial/header', $data); // Line 7
        $this->load->view('partial/menu');
?>

the control is:

Code:
<?php

class Rsvp extends Controller {

function Rsvp(){
    parent::Controller();
    $this->load->helper('url');
    $this->load->helper('form');
    $this->load->library('validation');
}

function index(){

    // set validation rules
    $rules['name']="required";
// more rules
    $this->validation->set_rules($rules);
    if ($this->validation->run()==FALSE){

        $this->load->view('rsvp');

    } else{
        // display success web page
        $this->load->view('validator_success');
    }
}
}
?>


any thoughts will be greatly appreciated


Messages In This Thread
New to CI - Small bugs in the view - by El Forum - 09-21-2008, 08:06 PM
New to CI - Small bugs in the view - by El Forum - 09-21-2008, 09:34 PM
New to CI - Small bugs in the view - by El Forum - 09-21-2008, 10:28 PM
New to CI - Small bugs in the view - by El Forum - 09-21-2008, 10:33 PM
New to CI - Small bugs in the view - by El Forum - 09-22-2008, 08:16 AM
New to CI - Small bugs in the view - by El Forum - 09-22-2008, 09:20 AM
New to CI - Small bugs in the view - by El Forum - 09-22-2008, 10:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB