Welcome Guest, Not a member yet? Register   Sign In
Best way for two models in one controller?
#4

PHP Code:
class ProductModel extends Model
{
    public function withDescription() {
        return $this->join('products_description''products.id = products_description.product_id''LEFT')
            ->where('products.id'1);
    }


Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply


Messages In This Thread
RE: Best way for two models in one controller? - by ozornick - 10-31-2024, 06:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB