codelgniter model error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: codelgniter model error (/showthread.php?tid=67954) |
codelgniter model error - moazam - 04-30-2017 I am new here,and this is my first post..i am here ,to have a probelm,that it... this is model controler error...please solve it where is wrong... 1..first open screenshot file,,name ..error.png ,,,that is error on local host... 2.then see code Au.php then 3.then see code. blog.php please tell anybody expert me where is wrong and solve it and give me right code.. I am waiting response.. RE: codelgniter model error - cpascu01 - 04-30-2017 I think your error is in Blog.txt. You have: $print_r($data); You shouldn't have the $ in front of print_r. RE: codelgniter model error - Martin7483 - 04-30-2017 Is your model Au located at ./application/models? Does your models filename Au.php start with a capital A? @cpascu01 (04-30-2017, 09:36 PM)cpascu01 Wrote: I think your error is in Blog.txt. You have: $print_r is indeed wrong and should be print_r($data), but it has nothing todo with the given error RE: codelgniter model error - moazam - 05-01-2017 Dear Martin7483 You can see all things that are right... in below screenshots...please solve this problem...i am totally waiting one one minute... RE: codelgniter model error - moazam - 05-01-2017 Dear sir, every thing ,you say,,has been done.and right...but error does not go... I thing,you can provide me right code...and test in your codingnetor RE: codelgniter model error - InsiteFX - 05-01-2017 His error is that the loader is not finding his Model. Check you Wamp setup and make sure your paths are set correct. Check your Model naming. If your Model is in a sub folder then you need to include the path also ( path/model) Check your index.php file and make sure that your application and system paths are correct. RE: codelgniter model error - Martin7483 - 05-01-2017 (05-01-2017, 12:18 AM)moazam Wrote: Dear Looking at your screenshots it seems your Au model has no file extension. Rename your file to Au.php RE: codelgniter model error - moazam - 05-01-2017 Dear Martin7483 You are really a teacher mind...now I am your fan....speciall callaping for you.. RE: codelgniter model error - Martin7483 - 05-01-2017 Just happy to help where I can |