public function actionIndex() { $bookG = new gbook(); if ($_POST['Name'] != "") { $bookG->Name = $_POST['Name']; $bookG->Say = $_POST['Say']; $bookG->save(false); } $numz = 1; $this->render('/gbook/index'); }