codeigniter-Bibliothek kann nicht geladen werden

Ich habe ein problem, dass ich nicht laden kann, meine Bibliothek in meinem controller :S

Bekam ich diese Fehlermeldung: Message: Undefined property: Profil::$profileWall

Meine Bibliothek:

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 

class ProfileWall
{

    private $CI;

    public function __construct()
    {
        $this->CI =& get_instance();
    }

    public function wallShow()
    {
        $this->CI->load->model('profil_model');
        return $this->CI->profil_model->wallGet($this->CI->uri->segment(3));
    }
}

und mein controller

    function index()
    {
        $this->load->model('profil_model');
        $data['query'] = $this->profil_model->vis_profil($this->uri->segment(3)); 


        //Henter lib profilwall så man kan vise wall beskeder i profilen
        $this->load->library('profileWall');
        $data['queryWall'] = $this->profileWall->wallShow();



        $data['content'] = 'profil_view';
        $this->load->view('includes/template', $data);


}

Was mache ich falsch?

  • welche version von CI sind verwenden Sie? und wo sind Sie gespeichert Profilewall.php
InformationsquelleAutor olla | 2011-01-23
Schreibe einen Kommentar