CodeIgniter Forums
Can someone check the "News section" Database Tutorial - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: Can someone check the "News section" Database Tutorial (/thread-72698.html)



Can someone check the "News section" Database Tutorial - John_Betong - 01-27-2019

https://codeigniter4.github.io/CodeIgniter4/tutorial/news_section.html

I decided to start from scratch with the above Database Tutorial:

I could not get it to work...  persevered and found that there appears to be  a missing database method.

Using the following rendered the data,

PHP Code:
// added ->resultID; 
 
$data['news'] = $db->getNews($id=1)->resultID  



RE: Can someone check the "News section" Database Tutorial - ciadmin - 01-27-2019

I an revsiting the tutorial this weekend.


RE: Can someone check the "News section" Database Tutorial - ciadmin - 01-28-2019

I have reviewed the tutorial ... are you sure you read it right? I don't see any "$db->getNews(...)"; there is, however "$model->getNews(...)". I have made some corrections independent of your question, and there will be an update to the tutorial in the next couple of days.


RE: Can someone check the "News section" Database Tutorial - InsiteFX - 01-29-2019

For one James it is missing the Success view file I had to add it.


RE: Can someone check the "News section" Database Tutorial - ciadmin - 01-29-2019

@InsiteFX Thanks Smile I will make sure that finds its way into the tutorial Smile