public function actionPosition() { $model = new Partjob(); $result['list'] = $model->find(); $model = new Type(); $result["type"] = $model->find(); $model = new Jobcompany(); $result["company"] = $model->find(); return $this->render('/business-store/position', $result); }
public function signup($name, $id) { $model = Partjob::find()->where(["partjob_id" => $name])->one(); $model->partjob_number = $id; $res = $model->save(); return $res; }