Database Design model custom rules and methods in the property controller result log. Please help me... After several hours, I couldn't find any information on the Internet... This is the $ article value after dump.
Database Design
Custom model rules and attributes
Methods In Controller
Result
Database in log
Please help me... After several hours, I couldn't find any information on the Internet...
This is the $ article value after dump.
Reply content:
Database Design
Custom model rules and attributes
Methods In Controller
Result
Database in log
Please help me... After several hours, I couldn't find any information on the Internet...
This is the $ article value after dump.
I don't know how you wrote the view layer. Try again below.
$model->load(Yii::$app->request->post(), '')
We recommend that you do not usesave(false)
Is it because there is no id in rules?
$cartObjectsModel = new CartObjects; if($aSave && is_array($aSave)) { foreach ($aSave as $key => $value) { $cartObjectsModel->$key = $value; } return $cartObjectsModel->save(); }