PHP code example of cst / yii-illuminate

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

    

cst / yii-illuminate example snippets


Yii::app()->queue->push(new SendEmail($message));

use CST\Yii\Illuminate\Queue\DispatchesJobs;

$this->dispatch(new SendEmail($message));

app('clientScript')->registerScriptFile(...);

t('Project', 'Save changes');

view('user/view', ['user' => $user]);

viewPartial('user/pic', ['user' => $user]);

$modelId = request('id')

asset('js/main.js');
asset('images/logo.png');

url('project/view', ['id' => 1]);