Display the specified resource

@param array $id Resource ID
@return array Response
189960
public function show($id = null)
    {
        // Check the ID
        if (!isset($id)) {
            throw new \InvalidArgumentException('Undefined ID', 400);
        }

        // Get record
        $item = $this->model->find($id);

        // Abort if the record is not found
        if (!$item) {
            throw new \Exception('Element not found', 404);
        }

        // Return response
        return [
            'success' => true,
            'data' => $item
        ];
    }
372541
public function show($id)
    {
        $question = $this->client->get(
            sprintf('buckets/%d/questions/%d.json', $this->bucket, $id)
        );

        return new Question($this->response($question));
    }
1008925
public function actionView($id)
    {
        $model = $this->findModel($id);
        if ($model && ($model->isPublic() || $model->isAuthor())) {
            return $this->render('view', [
                'model' => $model,
            ]);
        } else {
            Yii::$app->session->setFlash('success', Yii::t('note', 'Note does not exist.'));
            return $this->redirect(['index',]);
        }
    }
160988
public function actionView($id)
    {
        $model = $this->findModel($id);
        $providerTermRelationships = new \yii\data\ArrayDataProvider([
            'allModels' => $model->termRelationships,
        ]);

        return $this->render('view', [
            'model'                     => $this->findModel($id),
            'providerTermRelationships' => $providerTermRelationships,
        ]);
    }
1206123
public function apiShow (string $id)
    {
        $with = [];

        $select = HCResources::getFillableFields ();

        $record = HCResources::with ($with)
            ->select ($select)
            ->where ('id', $id)
            ->firstOrFail ();

        return $record;
    }
1212923
public function actionShow($id)
    {
        $model = $this->findModel($id);
        $response = Yii::$app->getResponse();
        return $response->sendFile($model->filename, $model->name, [
                'mimeType' => $model->type,
                'fileSize' => $model->size,
                'inline' => true
        ]);
    }
37583
public function actionView($id)
    {

        $photos = GalleryPhoto::find()->where(['gallery_id' => $id])->orderBy('name')->all();

        return $this->render('view', [
            'model' => $this->findModel($id),
            'photos' => $photos,
        ]);
    }
876927
public function show($id)
    {
        $lists = $this->list->getAll();
        $list  = $this->list->find($id);

        return view('newsletter::Backend.lists.emails')->with(['lists' => $lists, 'list' => $list]);
    }
1032421
public function show($id)
    {
        $item = $this->service->single($id);

        return $this->response()->item($item, $this->transformer);
    }
882864
public function getShow($id)
    {
        $response = $this->modelService->getBy($id);

        //return resource listing view
        return view(\OogleeUConfig::get('config.user_view.view'), compact('response'));
        
    }
1207017
public function actionView($id)
    {
        $model = $this->findModel($id);
        $providerBlock = new \yii\data\ArrayDataProvider([
            'allModels' => $model->blocks,
        ]);
        $providerComment = new \yii\data\ArrayDataProvider([
            'allModels' => $model->comments,
        ]);
        $providerPost = new \yii\data\ArrayDataProvider([
            'allModels' => $model->posts,
        ]);
        $providerProduct = new \yii\data\ArrayDataProvider([
            'allModels' => $model->products,
        ]);
        $providerTerm = new \yii\data\ArrayDataProvider([
            'allModels' => $model->terms,
        ]);
        return $this->render('view', [
            'model' => $this->findModel($id),
            'providerBlock' => $providerBlock,
            'providerComment' => $providerComment,
            'providerPost' => $providerPost,
            'providerProduct' => $providerProduct,
            'providerTerm' => $providerTerm,
        ]);
    }
721417
public function show($id)
    {
        $flipbook = DB::table('flipbook')->where('id', $id)->get()[0];
       //dd($flipbook);
        $content = explode(",",$flipbook->content);
        return view('flipbook::showbook',compact('flipbook','content'));
    }
809782
function get( $id )
    {
        $params = [
            'index' => $this->config->index,
            'type' => $this->config->type,
            'id' => $id,
        ];

        $response = $this->client->get($params);
        return $response['_source'];
    }
874558
public function status($id) 
    {
        $url = self::HOST . self::STATUS;

        $params = $this->get_default_params();
        $params['id'] = $id;
        $result = $this->request($url, $params);

        return $result;
    }
691552
public function show($id)
    {
        $newsletter = $this->newsletter->find($id);
        
        return view('newsletter::Frontend.show')->with(['newsletter' => $newsletter]);
    }
1032396
public function show($id)
    {
      $user  = $this->users->findOrFail($id);
      return \View::make('admin.users.show', [
        'user'              =>  $user,
        'title'              => 'view',
      ]);
    }
1321061
public function actionView($id)
    {
        $this->layout = static::MAIN_LAYOUT;
        return $this->render('view', [
            'model' => $this->findModel($id),
        ]);
    }