/** * @return string */ public function actionPlace() { $order = Checkout::place_order(); if ($order) { return $this->redirect(['success']); } else { return $this->redirect(['fail']); } }