backend/controllers/SiteController.php
/**
     * @param string $report
     * @return string
     * @throws BadRequestHttpException
     * @throws NotFoundHttpException
     */
@param string $report
@return string
@throws BadRequestHttpException
@throws NotFoundHttpException
@param string $report @return string @throws BadRequestHttpException @throws NotFoundHttpException
public function actionViewTestsLog($report)
    {
        $model = new TestsLogSearch();
        if ($model->load(['TestsLogSearch' => ['report' => $report]]) && $model->validate()) {
            $ret = $model->getReport();
            if ($ret['status']) {
                if (trim($ret['content'])) {
                    $this->layout = 'empty';
                    return $ret['content'];
                } else {
                    throw new BadRequestHttpException('Report is Empty', 300);
                }
            } else {
                throw new NotFoundHttpException('Report not found.');
            }
        } else {
            throw new BadRequestHttpException(Json::encode($model->getErrors()));
        }
    }
public function actionViewTestsLog ( $ report ) { $ model = new TestsLogSearch ( ) ; if ( $ model -> load ( [ 'TestsLogSearch' => [ 'report' => $ report ] ] ) && $ model -> validate ( ) ) { $ ret = $ model -> getReport ( ) ; if ( $ ret [ 'status' ] ) { if ( trim ( $ ret [ 'content' ] ) ) { $ this -> layout = 'empty' ; return $ ret [ 'content' ] ; } else { throw new BadRequestHttpException ( 'Report is Empty' , 300 ) ; } } else { throw new NotFoundHttpException ( 'Report not found.' ) ; } } else { throw new BadRequestHttpException ( Json :: encode ( $ model -> getErrors ( ) ) ) ; } }
@param string $report
 @return string
 @throws BadRequestHttpException
 @throws NotFoundHttpException
@param string $report @return string @throws BadRequestHttpException @throws NotFoundHttpException