コード例 #1
0
ファイル: MyController.php プロジェクト: suibber/hutujizhang
 public function actionIndex()
 {
     $user = Yii::$app->user;
     $month_plan = Plan::getMonthPlan($user->id);
     $month_account_all = Account::getMonthAccountAll($user->id);
     $week_account_all = Account::getWeekAccountAll($user->id);
     $month_balance = $month_plan - $month_account_all;
     $month_account_income_all = Account::getMonthAccountIncomeAll($user->id);
     $month_account_list = Account::getMonthAccountList($user->id);
     return $this->render('index', ['month_plan' => $month_plan, 'month_account_all' => $month_account_all, 'month_balance' => $month_balance, 'month_account_income_all' => $month_account_income_all, 'month_account_list' => $month_account_list]);
 }