[v2] - getting Undefined property with model - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 2.x (https://forum.codeigniter.com/forumdisplay.php?fid=18) +--- Thread: [v2] - getting Undefined property with model (/showthread.php?tid=1421) |
[v2] - getting Undefined property with model - Krycek - 03-09-2015 I have the following code which giving me Undefined property: Uploader::$mod_Photoalbums_model PHP Code: <?php Photoalbum Model > On filesystem the name is lowercase PHP Code: class mod_Photoalbums_model extends MY_Model { Code: Severity: Notice Anyone ? RE: [v2] - getting Undefined property with model - CroNiX - 03-09-2015 Read the section of the userguide dealing with Model naming. Quote:Where Model_name is the name of your class. Class names must have the first letter capitalized with the rest of the name lowercase. Make sure your class extends the base Model class. RE: [v2] - getting Undefined property with model - Krycek - 03-09-2015 (03-09-2015, 08:35 AM)CroNiX Wrote: Read the section of the userguide dealing with Model naming. Yeah I known, but this is old code. But I found it. In the __construct a library was loaded. This was causing the problem. |