PHP code example of startpl / t2cms-blog

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

    

startpl / t2cms-blog example snippets


'modules' => [
    //...
    'blog' => [
        'class' => 'startpl\t2cmsblog\backend\Module',
    ],
    //...
],

'modules' => [
    //...
    'blog' => [
        'class' => 'startpl\t2cmsblog\frontend\Module',
    ],
    //...
],
'urlManager' => [
    'rules' => [
        [
            'class' => 'startpl\t2cmsblog\components\CategoryUrlRule',
            //'prefix' => 'blog'
        ],
        [
            'class' => 'startpl\t2cmsblog\components\PageUrlRule',
            //'prefix' => 'blog'
        ],
    ],
],

php yii migrate --migrationPath=@vendor/startpl/t2cms-blog/migrations

php composer.phar