Your IP : 216.73.216.79


Current Path : /var/www/html/dosm/backend/modules/support/controllers/
Upload File :
Current File : /var/www/html/dosm/backend/modules/support/controllers/SupportManualController.php

<?php

namespace backend\modules\support\controllers;

use Yii;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\helpers\Url;

/**
 * SupportHelpdeskController implements the CRUD actions for SupportHelpdesk model.
 */
class SupportManualController extends Controller
{
    /**
     * @inheritdoc
     */
    public function behaviors()
    {
        return [
            'verbs' => [
                'class' => VerbFilter::className(),
                'actions' => [
                    'delete' => ['POST'],
                ],
            ],
        ];
    }

    /**
     * Lists all SupportHelpdesk models.
     * @return mixed
     */
    public function actionManual()
    {
        return $this->redirect('/admin/D17_DOKUMEN_MANUAL_PENGGUNA_SISTEM_DOSM.pdf');
    }

    /**
     * Displays a single SupportHelpdesk model.
     * @param integer $id
     * @return mixed
     */
    public function actionView($id)
    {
        return $this->render('view', [
            'model' => $this->findModel($id),
        ]);
    }

    /**
     * Creates a new SupportHelpdesk model.
     * If creation is successful, the browser will be redirected to the 'view' page.
     * @return mixed
     */
    public function actionCreate()
    {

    }

    /**
     * Updates an existing SupportHelpdesk model.
     * If update is successful, the browser will be redirected to the 'view' page.
     * @param integer $id
     * @return mixed
     */
    public function actionUpdate($id)
    {

    }

    /**
     * Deletes an existing SupportHelpdesk model.
     * If deletion is successful, the browser will be redirected to the 'index' page.
     * @param integer $id
     * @return mixed
     */
    public function actionDelete($id)
    {

    }

    /**
     * Finds the SupportHelpdesk model based on its primary key value.
     * If the model is not found, a 404 HTTP exception will be thrown.
     * @param integer $id
     * @return SupportHelpdesk the loaded model
     * @throws NotFoundHttpException if the model cannot be found
     */
    protected function findModel($id)
    {

    }
}