1. Go to this page and download the library: Download sergmoro1/yii2-modal-crud 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/ */
sergmoro1 / yii2-modal-crud example snippets
namespace backend\controllers;
use sergmoro1\modal\controllers\ModalController;
use common\models\Property;
use common\models\PropertySearch;
class PropertyController extends ModalController
{
public function newModel() { return new Property(); }
public function newSearch() { return new PropertySearch(); }
}