Welcome Guest, Not a member yet? Register   Sign In
Struckle with my model and the builder - "Call to a member function get() on null"
#5

If you need to work with the query builder, you need to call the builder function, it’s not a variable:
PHP Code:
$builder $this->builder(); 
See: http://codeigniter.com/user_guide/models...ry-builder

But in your case, you don’t need your getAll() function, just call the findAll() function:
PHP Code:
$this->data['epochen'] = $this->model->findAll(); 
See: http://codeigniter.com/user_guide/models...nding-data
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
RE: Struckle with my model and the builder - "Call to a member function get() on null" - by includebeer - 05-15-2021, 04:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB