Error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Error (/showthread.php?tid=42222) |
Error - El Forum - 05-31-2011 [eluser]Ben[/eluser] Am new in code ignitor and the tutorial am doing shows this error although everything seems in order A PHP Error was encountered Severity: Notice Message: Undefined variable: records Filename: views/welcome_message.php Line Number: 50 My welcome_message.php is <?php foreach($records as $row) : ?> <h1><?php echo $row->title; ?></h1> <?php endforeach; ?> Please help Error - El Forum - 05-31-2011 [eluser]osci[/eluser] the message means you are not passing this variable: records. Error - El Forum - 05-31-2011 [eluser]Ben[/eluser] And how do i solve that? Error - El Forum - 05-31-2011 [eluser]osci[/eluser] post from controller how you are passing data and from your model how you are getting your data. And please post in code tags your code to be copied easily, use [ code] [ /code] without the pace after [ |