Welcome Guest, Not a member yet? Register   Sign In
Model database Query
#3

If you use CI4 model, simply set the protected variables for $table, $returnType etc. then create function in the model:

PHP Code:
public function give$where=[] ) 
{
   return 
$this->where$where )->findAll();

Dirk B.
Abatrans Software
No SEO spam - see forum guidelines
Reply


Messages In This Thread
Model database Query - by Endless05 - 03-02-2020, 05:52 AM
RE: Model database Query - by InsiteFX - 03-02-2020, 08:57 AM
RE: Model database Query - by abatrans - 03-02-2020, 12:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB