if(isset($_POST['Post1'])) {
foreach ($model as $one) {
//echo $one['name'] . "<br>";
//$one->name = 'rarr';
//$one->name = $_POST['Post1'][0];
foreach ($_POST['Post1'] as $post){
foreach ($post as $a) {
$one->name = $a;
if ($one->save())
echo 'something' . "<br>";
}
}
}
}
return array(
'seconds'=>Array(self::HAS_MANY,'seconds', 'first_id')
);
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),