controllers/ProductController.php
/**
     * Displays a single Product model.
     * @param integer $id
     * @return mixed
     * @throws NotFoundHttpException if the model cannot be found
     */
Displays a single Product model.
@param integer $id
@return mixed
@throws NotFoundHttpException if the model cannot be found
Displays a single Product model . @param integer $id @return mixed @throws NotFoundHttpException if the model cannot be found
public function actionView($id, $category_id)
    {
        return $this->render('view', [
            'model' => $this->findModel($id),
            'category_id' => $category_id
        ]);
    }
public function actionView ( $ id , $ category_id ) { return $ this -> render ( 'view' , [ 'model' => $ this -> findModel ( $ id ) , 'category_id' => $ category_id ] ) ; }
Displays a single Product model.
Displays a single Product model .