PHP code example of qviox / yii2-mentor

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

    

qviox / yii2-mentor example snippets


'modules' => [
                'mentor'=>[
                            'class'=>'qviox\mentor\Module',
                            'userTable'=>'user',
                            'uploads'=>'uploads/mentor',
                            'adminEmails'=>['[email protected]','[email protected]'],
                            
                        ],
                        ...
]

 [ 'name'=>'name','surname'=>'surname'];
 

 [ 'name'=>'fio','surname'=>null];
 

 @qviox/mentor/Menu::getAdminMenu()
 
Формат возвращаемых данных:
 ['label' => 'Меню конкурса', 'icon' => 'calendar ',
        'items' => [
            ['label' => 'label, 'icon' => 'user', 'url' => url], 
            ...
        ]],