示例#1
0
文件: Admin.php 项目: apuc/app_to_vk
 public function actionEdit_service()
 {
     $service = new Services();
     $servic = $service->find()->where(['id' => $_GET['id']])->one();
     $this->app->parser->render('_form_services', ['service' => $servic, 'title' => 'Редактирование сервиса']);
 }
示例#2
0
文件: Search.php 项目: apuc/app_to_vk
 public function actionGet_service()
 {
     $service = new Services();
     $cityAll = $service->find()->orderBy('name', 'ASC')->all();
     echo Forms::dropDownList('service', null, ArrayHelper::map($cityAll, 'id', 'name'), ['class' => 'searchService form-control', 'prompt' => 'Выберите услугу']);
 }
示例#3
0
 public function actionAdd_service()
 {
     $services = new Services();
     $this->app->parser->render('add_service', ['services' => $services->find()->all()]);
 }