1. Go to this page and download the library: Download milan-miscevic/yii2crud 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/ */
// form/ArticleForm.php
namespace app\form;
use mmm\yii2crud\CrudForm;
class ArticleForm extends CrudForm
{
public $title;
public $content;
public function rules()
{
return [
[['title', 'content'], '
// models/Article.php
namespace app\models;
use mmm\yii2crud\CrudActiveRecord;
class Article extends CrudActiveRecord
{
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.