Welcome Guest, Not a member yet? Register   Sign In
Can I have 2 tables in codeigniter 4 model?
#4

If you use the QueryBuilder you can do it like this.

PHP Code:
$builder $db->table('mytable');
$query   $builder->get(); 

Then when your finished just change it back to the original table for the model.

See the builder method in ./system/Model.php
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Can I have 2 tables in codeigniter 4 model? - by InsiteFX - 10-29-2020, 12:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB