![]() |
Wrox book error frustrating. Please help. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Wrox book error frustrating. Please help. (/showthread.php?tid=14381) |
Wrox book error frustrating. Please help. - El Forum - 12-31-2008 [eluser]clintonbeattie[/eluser] Resolved this. I used a lowercase letter when autoloading my models. One other strange thing is that images aren't visible because the base url isn't attached to them. I have 'images/image.jpg' instead of 'http://localhost/codeigniter/images/image.jpg'. Any thoughts? Hi, Anyone else is using the Wrox codeigniter book? I have this error being thrown on my welcome page. Code: A PHP Error was encountered I have reached page 108. This is my code for the welcome controller... Code: class Welcome extends Controller { I'm definitely no expert but all this seems to be fine. This is my mproduct.php file... Code: class MProducts extends Model { I would grateful if someone could shed some light on this as it's driving me crazy. Thanks, Clinton Wrox book error frustrating. Please help. - El Forum - 12-31-2008 [eluser]PowerCode[/eluser] Ignore this. Wrox book error frustrating. Please help. - El Forum - 12-31-2008 [eluser]therealmaloy[/eluser] PowerCode, why ignore him? justification? he wants to learn! modelreject if you have autoloaded the models, ie. mproducts and mcats you should also check the file names, it must be mproducts.php representing your MProducts class and so on.. file names and class names could make issues like this. ![]() Wrox book error frustrating. Please help. - El Forum - 12-31-2008 [eluser]Michael Wales[/eluser] Code: <?php echo base_url(); ?> Wrox book error frustrating. Please help. - El Forum - 01-01-2009 [eluser]clintonbeattie[/eluser] Thanks Michael. I've added that into the MProducts Model and it works a treat. Code: "image" => base_url().$row['image'] I'll have to email Wrox and get them to add that to the errata. Best. |