Created
March 6, 2013 08:18
-
-
Save jackkitley/5097592 to your computer and use it in GitHub Desktop.
What am i doing wrong?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!empty($_POST)) { | |
$datenow = new CDbExpression('NOW()'); | |
$systemaccountmodel->attributes=array('datecreated'=>$datenow,'createdbyuserid'=>0); | |
$systemaccountmodel->save(); | |
$systemaccountid = Yii::app()->db->getLastInsertId(); | |
$_POST["Person"][1]['systemaccountid'] = $systemaccountid; | |
$_POST["Person"][1]['datecreated'] = $datenow; | |
$_POST["Person"][1]['createdbyuserid'] = 0; | |
$personaldetailsmodel->attributes=$_POST["Person"][1]; | |
$personaldetailsmodel->save(); | |
var_dump($_POST); | |
} |
DarkMukke
commented
Mar 6, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment