PHP code example of davidjeddy / yii2-article-category

1. Go to this page and download the library: Download davidjeddy/yii2-article-category 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/ */

    

davidjeddy / yii2-article-category example snippets


$config = [
    'modules' => [
        ...
        'article-category' => ['class' => 'davidjeddy\articlecategory\Module'],
        ...
    ],
];

    echo $form->field($model, 'order')->widget(
        \trntv\filekit\widget\Upload::className(),
        [
            'url' => ['/file-storage/upload'],
            'maxFileSize' => 5000000, // 5 MiB
        ]);