Welcome Guest, Not a member yet? Register   Sign In
Determine if CodeIgniter’s Model Save() is Insert or Update
#5

Also, you assign $insertID but return $insertedID

PHP Code:
if($insertID=$this->getInsertID()) {
    return $insertedID;

CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
Reply


Messages In This Thread
RE: Determine if CodeIgniter’s Model Save() is Insert or Update - by includebeer - 12-30-2020, 07:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB