Inheritance: extends app\extensions\action\Controller
示例#1
0
 public function actionSaveComment($ticket_id, $ticket_comment)
 {
     $ticket = tickets::find('open_user_id')->where(['id' => $ticket_id])->One();
     if ($ticket['open_user_id'] == yii::$app->user->id) {
         DashboardController::actionSaveTicketComment($ticket_id, $ticket_comment);
     } else {
         echo 'Вы не можете изменить не свою заявку';
     }
 }
 public function init()
 {
     parent::init();
     $this->wtChildPath = DashboardController::className();
     $this->setLayout('admin');
 }