Webe Gigimodel Sets 4047 Install

cp -r sets_4047/runtime_sets/* models/ These files (e.g., BaseSet4047.php , RelationMapper4047.php ) should not be edited directly, as they provide the base classes that your generated GiiModels will extend. Most legitimate distributions of Sets 4047 include a verification script. Run it to ensure paths and database connections are correct.

Locate the modules section for Gii and modify it as follows: webe gigimodel sets 4047 install

'modules' => [ 'gii' => [ 'class' => 'yii\gii\Module', 'allowedIPs' => ['127.0.0.1', '::1', '192.168.0.*'], 'generators' => [ 'webeModel' => [ 'class' => 'app\vendor\webe\generators\model\Generator', 'templates' => [ 'sets_4047' => '@app/sets_4047/templates/model/default', ] ], 'webeCrud' => [ 'class' => 'app\vendor\webe\generators\crud\Generator', 'templates' => [ 'sets_4047_crud' => '@app/sets_4047/templates/crud/default', ] ] ], ], ], The unique feature of Sets 4047 is its "runtime dynamic relations." Copy the runtime set files into your models directory. cp -r sets_4047/runtime_sets/* models/ These files (e

cd /var/www/webe-app/ wget https://your-repository.com/sets/webe-giimodel-sets-4047.tar.gz tar -xzvf webe-giimodel-sets-4047.tar.gz After extraction, you should see a folder named sets_4047/ containing subdirectories: templates/ , runtime_sets/ , and sql/ . The "Sets" part of the name implies a predefined database structure. Navigate to the SQL directory and import the base schema. Locate the modules section for Gii and modify

mysql -u your_db_user -p your_database_name < sets_4047/sql/base_schema_4047.sql Warning: This schema typically creates 15-20 core tables (e.g., webe_set_registry , gii_template_4047 , dynamic_relation_map ). Do not run this on a database with existing tables unless you have reviewed the foreign key constraints. Unlike standard Gii, the WeBe version uses a registry for configuration sets. You must register "4047" in the main configuration file ( config/web.php or config/webe.php ).