PHP code example of prawee / yii2-widgets
1. Go to this page and download the library: Download prawee/yii2-widgets library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
prawee / yii2-widgets example snippets
bash
public functionn actionCreate(){
...
if(Yii::$app->getRequest()->isAjax){
return $this->renderAjax('create', [
'model' => $model,
]);
}else{
return $this->render('create', [
'model' => $model,
]);
}
}