Welcome Guest, Not a member yet? Register   Sign In
[Solved] Cannot get model in 'Hello World' project to work - getting undefined variable notice
#1

[eluser]wild thing[/eluser]
Source Code

Am trying to make a simple blogging app following the user guide on CodeIgniter 1.6.3. However, I keep getting the following error:

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: posts

Filename: controllers/blahg.php

Line Number: 16

And the 'Failure' text is echoed, through my code. FYI, on line 26, $Posts_model doesn't work either (if I do $this->load->model('Posts_model');.

I've been pulling out my hair trying to figure out what I'm doing wrong. Help?


Messages In This Thread
[Solved] Cannot get model in 'Hello World' project to work - getting undefined variable notice - by El Forum - 07-06-2008, 04:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB