Welcome Guest, Not a member yet? Register   Sign In
Get select for all controllers
#1

(This post was last modified: 10-10-2021, 09:37 PM by Secux.)

where this select must be added to apply to all controllers
PHP Code:
$builder $db->table('users');
$builder->select('title, content, date');
$builder->from('mytable');
$data[‘user’] = $builder->get(); 

I am currently adding it to all functions and controllers.  I want to add it to only one file and it applies to all functions
Reply


Messages In This Thread
Get select for all controllers - by Secux - 10-10-2021, 09:36 PM
RE: Get select for all controllers - by Secux - 10-12-2021, 11:23 PM
RE: Get select for all controllers - by kilishan - 10-13-2021, 11:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB