public function actionExpandTicket($ticket_id) { if (!($ticket = models\Ticket::model()->findByPk($ticket_id))) { throw new \CHttpException(404, 'Invalid ticket id.'); } $this->setTicketState($ticket, true); }