Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CI3 - Cannot access a function from the model
Post: RE: CI3 - Cannot access a function from the model

"The model are an object". Ahh got it. So even though the model hasn't "done" anything yet, it's still loaded in as an object. That solved things for me entirely. Really appreciate your help a...
4,141 Views
5 Replies
05-03-2020, 04:41 PM
timps
    Thread: CI3 - Cannot access a function from the model
Post: RE: CI3 - Cannot access a function from the model

jreklund Wrote: (05-03-2020, 06:20 AM) -- Controller: Code: -- $this->load->model('Projects'); $data = []; $data['projects'] = $this->projects; $this->load->view('view', $data); -- In your...
4,141 Views
5 Replies
05-03-2020, 06:45 AM
timps
    Thread: CI3 - Cannot access a function from the model
Post: RE: CI3 - Cannot access a function from the model

OK thanks I'll try that. Really appreciate it. But that method for accessing a model from inside a view isn't outlined on the model page OR the one you linked.
4,141 Views
5 Replies
05-03-2020, 06:38 AM
timps
    Thread: CI3 - Cannot access a function from the model
Post: CI3 - Cannot access a function from the model

Hey team, am I missing something fundamental in my CI config? I can load a model (it seems to be loaded when I print_r $this) but cannot access a function from inside it. The model is named Projec...
4,141 Views
5 Replies
05-03-2020, 05:45 AM
timps

Theme © iAndrew 2016 - Forum software by © MyBB