I'm starting with ci4, so I'm still learning. It's working like a charm, but I would like to get all the results without the getWhere and I can't find the solution. i've tried a lot of things but always get an "Undefined index id_labo"
My table is very simple, (id_labo, name, active) and I'm using different "db base" by adding different conf in Config > Database.php
This is my model :
PHP Code:
<?php namespace App\Models; use CodeIgniter\Database\ConnectionInterface; use CodeIgniter\Model;
class LabosModel extends Model { protected $db;
public function __construct(ConnectionInterface &$db) { $this->db =& $db; }