Welcome Guest, Not a member yet? Register   Sign In
Can someone check the "News section" Database Tutorial
#1

https://codeigniter4.github.io/CodeIgnit...ction.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  
Reply
#2

I an revsiting the tutorial this weekend.
Reply
#3

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.
Reply
#4

For one James it is missing the Success view file I had to add it.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#5

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




Theme © iAndrew 2016 - Forum software by © MyBB