How to add template in codeigniter |how to create template in codeigniter| template in codeigniter 4
A php developer should always have knowledge, where the error is showing. The day you can solve php and codeigniter or any php error, don’t worry anymore. You will become a successful php developer.
Today you will see about a common php codeigniter error, which those who are starting php Codeigniter, have to face this error more.
Let’s see what the problem is.
Let’s see what the problem is.
Suppose you have newly setup codeigniter 3. Everything is fine, but this error is showing on your screen. You can not understand where the error!
Error to Face
An uncaught Exception was encountered
Type: Error
Message: Call to a member function BookList() on null
Filename: C:\xampp\htdocs\ajax_ci\application\controllers\My_controller.php
Line Number: 60
Backtrace:
File: C:\xampp\htdocs\ajax_ci\index.php
Line: 315
Function: require_once
You have searched on the internet, watched videos but still your problem is not solved. That’s when this post will be of great use to you.
Error in text format
Error coming from
How to solve this big issue
Change to your controller Function
You don’t need to do anything different to fix this problem. The solution is right in front of you. Just need to see where the problem is.
You can only see if you have capitalized any of the modal words in your controller by taking a good look at the modal function where you have called the modal function.
You need to give the name of the model $this->load->model(‘JoinTable’); gave this
You can only see if you have capitalized any of the modal words in your controller by taking a good look at the modal function where you have called the modal function.
You need to give the name of the model $this->load->model(‘JoinTable’); gave this
At the End....
I think your problem is solved now. It’s funny how we sometimes make mistakes while writing code. Although we waste a lot of time due to our mistakes.
Thanks for reading this post
Related posts