OKyJIucT
10/2/2016 - 10:31 AM

construct

construct

<?php
/**
 * Created by PhpStorm.
 * User: Home
 * Date: 02.10.2016
 * Time: 13:08
 */

namespace app\controllers;

use yii\web\Controller;

class CController extends Controller
{
    public $workhour = [
        'text' => 'Начать работу',
        'class' => 'btn btn-success',
    ];


    public function beforeAction($event)
    {
        $this->workhour = [
            'text' => 'Начать работу - test construct',
            'class' => 'btn btn-success - test construct',
        ];

        return parent::beforeAction($event);
    }

}