company debug
This commit is contained in:
parent
ae993956ee
commit
df93c25693
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace frontend\modules\company\controllers;
|
namespace frontend\modules\company\controllers;
|
||||||
|
|
||||||
|
use common\classes\Debug;
|
||||||
use common\services\CompanyService;
|
use common\services\CompanyService;
|
||||||
use frontend\modules\company\models\Company;
|
use frontend\modules\company\models\Company;
|
||||||
use frontend\modules\company\models\CompanySearch;
|
use frontend\modules\company\models\CompanySearch;
|
||||||
@ -107,6 +108,7 @@ class CompanyController extends Controller
|
|||||||
if ($model->load($this->request->post()) && $model->save()) {
|
if ($model->load($this->request->post()) && $model->save()) {
|
||||||
return $this->redirect(['view', 'id' => $model->id]);
|
return $this->redirect(['view', 'id' => $model->id]);
|
||||||
}
|
}
|
||||||
|
Debug::prn($model);
|
||||||
} else {
|
} else {
|
||||||
$model->loadDefaultValues();
|
$model->loadDefaultValues();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user