Created
December 29, 2016 04:26
-
-
Save 63phc/8bf9eb53f156aa86287d374f5f5a9246 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function actionNewAddons() | |
{ | |
\Yii::$app->response->format = Response::FORMAT_JSON; | |
$item = new TypeCarAddons(); | |
$item->loadDefaultValues(); | |
return [ | |
'success' => 1, | |
'data' => $this->renderPartial('partial/update/_addons_item', ['form' => new ActiveForm(), 'item' => $item, 'key' => uniqid()]) | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment