![]() |
Undefined Variable errors - 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: Undefined Variable errors (/showthread.php?tid=33299) |
Undefined Variable errors - El Forum - 08-21-2010 [eluser]russ_kern[/eluser] I keep getting errors in my view file "Severity: Notice Message: Undefined variable: kitcost Filename: PCMO/premium_detail.php Line Number: 5" I've been through the userguide over & over (and looked around here) and it seems like I should be doing this correctly but the error messages tells me otherwise. I feel like this is a really simple thing and it is driving me nuts as a result but I finally had to breakdown and ask if anyone could help. The function in my Promotions model is: Code: function premium_detail($id) my controller looks like (simplified): Quote: function premium_detail($id) In my "premium_detail" view file I have: Code: <div id="fourcol_content"> where kit cost & Kit contents are record names form my promotions2010 table in my DB. Can anyone show me why I am getting the errors? Thanks in advance. Russ Undefined Variable errors - El Forum - 08-21-2010 [eluser]russ_kern[/eluser] Nevermind... I figured it out... I was right... it was something simple. (or at least the solution was) |