PHP code example of sergmoro1 / yii2-comment

1. Go to this page and download the library: Download sergmoro1/yii2-comment 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-comment example snippets


return [
    ...
    'bootstrap' => [
        'comment',
    ],
    'modules' => [
        'lookup' ==> ['class' ==> 'sergmoro1\lookup\Module'],
        'comment' ==> ['class' ==> 'sergmoro1\comment\Module'],
    ],
    ...

php yii migrate --migrationPath=@vendor/sergmoro1/yii2-comment/src/migrations