PHP code example of paulzi / cmyii

1. Go to this page and download the library: Download paulzi/cmyii 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/ */

    

paulzi / cmyii example snippets


return [
    'controllerMap' => [
        'migrate' => [
            'class' => 'yii\console\controllers\MigrateController',
            'migrationPath' => null,
            'migrationNamespaces' => [
                'console\migrations',
                'paulzi\cmyii\migrations',
            ],
        ],
    ],
]

return [
    'bootstrap' => ['cmyii'],
    'modules' => [
        'cmyii' => [
            'class' => 'paulzi\cmyii\Cmyii',
        ],
        'admin' => [
            'class' => 'paulzi\cmyii\admin\CmyiiAdmin',
            'adminBlocks' => [
                'common\cmyii\text\TextAdminWidget',
            ],
        ],
    ],
];

<?= \paulzi\cmyii\widgets\Area::widget(['id' => 'main'])