CodeIgniter Forums
Undefined property? - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Undefined property? (/thread-57491.html)

Undefined property? - El Forum - 03-18-2013

Hi guys

I have these simple codes below,
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Front extends CI_Controller
public $data = array();

    function __construct ()

  $this->data['header'] = 'header';
  $this->data['body']   = 'body';
  $this->data['footer'] = 'footer';

function index() {
  //$this->data['header'] = $this->load->view('template/header', $this->data, TRUE);
  //$this->data['footer'] = $this->load->view('template/footer', $this->data, TRUE);
  $this->load->view('template/master', $this->data);  


and the error is,
A PHP Error was encountered
   Severity: Notice
   Message: Undefined property: Front::$load
   Filename: controllers/front.php
   Line Number: 9

So basically I'm just loading the helper here the first $this->load class.
So why is this error showing?, can some one please explain to me.

Thanks in advanced.

Undefined property? - El Forum - 03-18-2013

Okay problem solved.
I forgot to include this codes below,