public function actionIndex() { $model = new EmployeeAttendance(); $empModel = new Employee(); $empList = $empModel->getEmployeeList(); $todaysList = $model->getTodaysList(); return $this->render('index', ['model' => $model, 'empList' => $empList, 'todaysList' => $todaysList]); }
public function actionIndex() { $projectModel = new Project(); $empModel = new Employee(); $projectPaymentModel = new ProjectPayment(); $empList = $empModel->getEmployeeList(); //$projectList = $projectModel->getProjectList(); $projectList = Project::find(); $countProjestQuery = clone $projectList; $projectPages = new Pagination(['totalCount' => $countProjestQuery->count(), 'pageSize' => 10]); $projectList = $projectList->offset($projectPages->offset)->limit(10)->all(); //$projectPaymentList = $projectPaymentModel->getPaymentList(); $projectPaymentList = ProjectPayment::find(); $countProjectPaymentQuery = clone $projectPaymentList; $projectPaymentPages = new Pagination(['totalCount' => $countProjectPaymentQuery->count(), 'pageSize' => 10]); $projectPaymentList = $projectPaymentList->offset($projectPaymentPages->offset)->limit(10)->all(); return $this->render('index', ['projectModel' => $projectModel, 'projectPaymentModel' => $projectPaymentModel, 'empList' => $empList, 'projectList' => $projectList, 'projectPaymentList' => $projectPaymentList, 'projectPages' => $projectPages, 'projectPaymentPages' => $projectPaymentPages]); }
public function actionIndex() { $model = new Employee(); $empList = $model->getEmployeeList(); return $this->render('index', ['model' => $model, 'empList' => $empList]); }