Trung Tâm Kiểm định Và Chứng Nhận 2 - HCMGIS

yii\base\UnknownPropertyException: Getting unknown property: app\commons\models\categories\common\DanhmucDiachi::fulldiachi in C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\Component.php:154 Stack trace: #0 C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\db\BaseActiveRecord.php(296): yii\base\Component->__get('fulldiachi') #1 C:\workspaces\xampp\htdocs\tiemluc2019\modules\frontend\views\phong-thi-nghiem\view.php(56): yii\db\BaseActiveRecord->__get('fulldiachi') #2 C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\View.php(347): require('C:\\workspaces\\x...') #3 C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\View.php(257): yii\base\View->renderPhpFile('C:\\workspaces\\x...', Array) #4 C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\View.php(156): yii\base\View->renderFile('C:\\workspaces\\x...', Array, Object(app\modules\frontend\controllers\PhongThiNghiemController)) #5 C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\Controller.php(407): yii\base\View->render('view', Array, Object(app\modules\frontend\controllers\PhongThiNghiemController)) #6 C:\workspaces\xampp\htdocs\tiemluc2019\modules\frontend\controllers\PhongThiNghiemController.php(86): yii\base\Controller->render('view', Array) #7 [internal function]: app\modules\frontend\controllers\PhongThiNghiemController->actionView('trung-tam-kiem-...', NULL) #8 C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array) #9 C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\Controller.php(178): yii\base\InlineAction->runWithParams(Array) #10 C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\Module.php(552): yii\base\Controller->runAction('view', Array) #11 C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\web\Application.php(103): yii\base\Module->runAction('frontend/phong-...', Array) #12 C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\Application.php(384): yii\web\Application->handleRequest(Object(yii\web\Request)) #13 C:\workspaces\xampp\htdocs\tiemluc2019\web\index.php(17): yii\base\Application->run() #14 {main} Copied! Copy Stacktrace Search Stackoverflow Search Google Exception Unknown Property – yii\base\UnknownPropertyException

Getting unknown property: app\commons\models\categories\common\DanhmucDiachi::fulldiachi

  • 1. in C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\Component.php at line 154 145146147148149150151152153154155156157158159160161162163 if ($behavior->canGetProperty($name)) { return $behavior->$name; } } if (method_exists($this, 'set' . $name)) { throw new InvalidCallException('Getting write-only property: ' . get_class($this) . '::' . $name); } throw new UnknownPropertyException('Getting unknown property: ' . get_class($this) . '::' . $name); } /** * Sets the value of a component property. * * This method will check in the following order and act accordingly: * * - a property defined by a setter: set the property value * - an event in the format of "on xyz": attach the handler to the event "xyz"
  • 2. in C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\db\BaseActiveRecord.php at line 296 – yii\base\Component::__get('fulldiachi') 290291292293294295296297298299300301302 return null; } if (isset($this->_related[$name]) || array_key_exists($name, $this->_related)) { return $this->_related[$name]; } $value = parent::__get($name); if ($value instanceof ActiveQueryInterface) { $this->setRelationDependencies($name, $value); return $this->_related[$name] = $value->findFor($name, $this); } return $value;
  • 3. in C:\workspaces\xampp\htdocs\tiemluc2019\modules\frontend\views\phong-thi-nghiem\view.php at line 56 – yii\db\BaseActiveRecord::__get('fulldiachi') 50515253545556575859606162 <th width="25%">Cơ quan chủ quản</th> <td colspan="3"><?= $model->coquan_chuquan ?></td> </tr> <tr> <th width="25%">Địa chỉ</th> <td colspan="3"> <?= $model->danhmucDiachi->fulldiachi ?> </td> </tr> <tr> <th width="25%">Điện thoại</th> <td> <?= $model->dienthoai ?>
  • 4. in C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\View.php at line 347 – require('C:\workspaces\xampp\htdocs\tieml...') 341342343344345346347348349350351352353 { $_obInitialLevel_ = ob_get_level(); ob_start(); ob_implicit_flush(false); extract($_params_, EXTR_OVERWRITE); try { require $_file_; return ob_get_clean(); } catch (\Exception $e) { while (ob_get_level() > $_obInitialLevel_) { if (!@ob_end_clean()) { ob_clean(); }
  • 5. in C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\View.php at line 257 – yii\base\View::renderPhpFile('C:\workspaces\xampp\htdocs\tieml...', ['model' => app\commons\models\phongthinghiem\PhongthinghiemDoituong, 'const' => ['title' => 'Phòng thí nghiệm', 'url' => ['index' => 'phong-thi-nghiem/index', 'search' => 'phong-thi-nghiem/search', 'view' => 'phong-thi-nghiem/view'], 'label' => ['index' => 'Tổng quan', 'search' => 'Tìm kiếm', 'view' => 'Thông tin chi tiết']]]) 251252253254255256257258259260261262263 $this->renderers[$ext] = Yii::createObject($this->renderers[$ext]); } /* @var $renderer ViewRenderer */ $renderer = $this->renderers[$ext]; $output = $renderer->render($this, $viewFile, $params); } else { $output = $this->renderPhpFile($viewFile, $params); } $this->afterRender($viewFile, $params, $output); } array_pop($this->_viewFiles); $this->context = $oldContext;
  • 6. in C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\View.php at line 156 – yii\base\View::renderFile('C:\workspaces\xampp\htdocs\tieml...', ['model' => app\commons\models\phongthinghiem\PhongthinghiemDoituong, 'const' => ['title' => 'Phòng thí nghiệm', 'url' => ['index' => 'phong-thi-nghiem/index', 'search' => 'phong-thi-nghiem/search', 'view' => 'phong-thi-nghiem/view'], 'label' => ['index' => 'Tổng quan', 'search' => 'Tìm kiếm', 'view' => 'Thông tin chi tiết']]], app\modules\frontend\controllers\PhongThiNghiemController) 150151152153154155156157158159160161162 * @throws InvalidCallException if the view cannot be resolved. * @see renderFile() */ public function render($view, $params = [], $context = null) { $viewFile = $this->findViewFile($view, $context); return $this->renderFile($viewFile, $params, $context); } /** * Finds the view file based on the given view name. * @param string $view the view name or the [path alias](guide:concept-aliases) of the view file. Please refer to [[render()]] * on how to specify this parameter.
  • 7. in C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\Controller.php at line 407 – yii\base\View::render('view', ['model' => app\commons\models\phongthinghiem\PhongthinghiemDoituong, 'const' => ['title' => 'Phòng thí nghiệm', 'url' => ['index' => 'phong-thi-nghiem/index', 'search' => 'phong-thi-nghiem/search', 'view' => 'phong-thi-nghiem/view'], 'label' => ['index' => 'Tổng quan', 'search' => 'Tìm kiếm', 'view' => 'Thông tin chi tiết']]], app\modules\frontend\controllers\PhongThiNghiemController) 401402403404405406407408409410411412413 * These parameters will not be available in the layout. * @return string the rendering result. * @throws InvalidArgumentException if the view file or the layout file does not exist. */ public function render($view, $params = []) { $content = $this->getView()->render($view, $params, $this); return $this->renderContent($content); } /** * Renders a static string by applying a layout. * @param string $content the static string being rendered
  • 8. in C:\workspaces\xampp\htdocs\tiemluc2019\modules\frontend\controllers\PhongThiNghiemController.php at line 86 – yii\base\Controller::render('view', ['model' => app\commons\models\phongthinghiem\PhongthinghiemDoituong, 'const' => ['title' => 'Phòng thí nghiệm', 'url' => ['index' => 'phong-thi-nghiem/index', 'search' => 'phong-thi-nghiem/search', 'view' => 'phong-thi-nghiem/view'], 'label' => ['index' => 'Tổng quan', 'search' => 'Tìm kiếm', 'view' => 'Thông tin chi tiết']]]) 80818283848586878889909192 $model = PhongthinghiemDoituong::findOne(['id' => $id]); } else { $model = PhongthinghiemDoituong::findOne(['alias' => $alias]); } return $this->render('view', [ 'model' => $model, 'const' => $this->const, ]); } public function actionChitiet($id){ return $this->redirect(['view','id' => $id]); }
  • 9. app\modules\frontend\controllers\PhongThiNghiemController::actionView('trung-tam-kiem-dinh-va-chung-nha...', null)
  • 10. in C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\InlineAction.php at line 57 – call_user_func_array([app\modules\frontend\controllers\PhongThiNghiemController, 'actionView'], ['trung-tam-kiem-dinh-va-chung-nha...', null]) 515253545556575859 $args = $this->controller->bindActionParams($this, $params); Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
  • 11. in C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\Controller.php at line 178 – yii\base\InlineAction::runWithParams(['action' => 'view', 'alias' => 'trung-tam-kiem-dinh-va-chung-nha...']) 172173174175176177178179180181182183184 } $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
  • 12. in C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\Module.php at line 552 – yii\base\Controller::runAction('view', ['action' => 'view', 'alias' => 'trung-tam-kiem-dinh-va-chung-nha...']) 546547548549550551552553554555556557558 $parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); if ($oldController !== null) { Yii::$app->controller = $oldController; } return $result; }
  • 13. in C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\web\Application.php at line 103 – yii\base\Module::runAction('frontend/phong-thi-nghiem/view', ['action' => 'view', 'alias' => 'trung-tam-kiem-dinh-va-chung-nha...']) 979899100101102103104105106107108109 $params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) {
  • 14. in C:\workspaces\xampp\htdocs\tiemluc2019\vendor\yiisoft\yii2\base\Application.php at line 384 – yii\web\Application::handleRequest(yii\web\Request) 378379380381382383384385386387388389390 { try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
  • 15. in C:\workspaces\xampp\htdocs\tiemluc2019\web\index.php at line 17 – yii\base\Application::run() 11121314151617 function dd($v) { \yii\helpers\VarDumper::dump($v, 10, true); exit(); } (new \yii\web\Application($config))->run();
$_GET = [ 'action' => 'view', 'alias' => 'trung-tam-kiem-dinh-va-chung-nhan-2', ]; Yii Framework

2024-11-28, 15:42:32

Apache

Yii Framework/2.0.46

Từ khóa » Cục Viễn Thông 60 Tân Canh