    public function actionView($id){
        $model = $this->loadModel($id);
        if (!$this->checkPermissions ($model, 'view')) $this->denied ();

        // add media object to user's recent item list
        User::addRecentItem('m', $id, Yii::app()->user->getId()); 

        $this->render('view', array(
            'model' => $model,
        ));
    }
The product receives input or data, but it does
        not validate or incorrectly validates that the input has the
        properties that are required to process the data safely and
        correctly.