I have defined some value to insert into database…
and when i call to save it returns false … so i want to know
How can i do this in yii…
and i want to add it i have validated all inputs…
after that i am doing this… in actionInsert (site controller)
if($modelA->save())
{
echo 'Saved';
}
else
{
//here i want to get errors array ... i want to know why it is not saved.. is there any //function similiar to mysqli_errors()
}