DatabaseException: You must set the database table to be used with your query |
I get the following error
CodeIgniter\Database\Exceptions\DatabaseException You must set the database table to be used with your query Using the code below ( it seems to me that tables name are set ) Any hint to fix the issue? Thanks a lot Code: public function index(): string Code: namespace App\Models\Public\Registers\Civil;
Hi Vespa, I have encountered such errors and usually in my case it was some syntax error.
Looking at the code from the mobile it looks like closing } is missing: PHP Code: class RegisterModel extends Model
Where in your model do you actually connect to the database group?
I would expect to see some code like this PHP Code: $this->db = Database::connect('registers');
Hi, Vespa.
just remove double quotes here $builder = $this->db->table("$this->table_pictures"); like this $builder = $this->db->table($this->table_pictures); |
Welcome Guest, Not a member yet? Register Sign In |