• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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  
CI4 Develop Site - progressing nicely - Thank you Smile
https://johns-jokes.cf/pictures

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.