View a form post.

@param int $id

@return Response
968283
public function viewAction($id)
    {
        $post = $this->get('opifer.form.post_manager')->getRepository()->find($id);

        if (!$post) {
            return $this->createNotFoundException();
        }

        return $this->render($this->getParameter('opifer_form.post_view_view'), [
            'post' => $post,
        ]);
    }
273440
public function view(string $id = null)
    {
        $permission = $this->Permissions->get($id);

        $this->set('permission', $permission);
        $this->set('_serialize', ['permission']);
    }
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',]);
        }
    }
783275
public function show($id, ShowRequest $request)
    {
        $upload = $this->repository->find($id);
        $upload->load($request->getWith());

        if (empty($upload)) {
            return $this->sendError('Upload not found');
        }

        return $this->sendResponse($upload, '');
    }
477944
public function show($id)
	{
		$entity = $this->getModel()->getRepository()->getById($id);

		return $this->response()
			->item($entity)
			->view($this->getView('show'), [
				'entity' => $entity
			]);
	}
936119
public function show($id)
    {
        $request = $this->makeRequest('show');
        $model = $this->service->get($id);
        return $this->maybeMakeResource('single', $model);

    }
410051
public function view($id = null)
    {
        $role = $this->Roles->get($id, [
            'contain' => []
        ]);
        $this->set('role', $role);

        $this->render(Configure::read('CM.AdminRoleViews.view'));
    }
1330674
public function view($id = null) {
        $role = $this->Roles->get($id, [
            'contain' => ['Tasks', 'Users']
        ]);
        $this->set('role', $role);
        $this->set('_serialize', ['role']);
    }
969636
public function view($id = null)
    {
        $cmsTerm = $this->CmsTerm->get($id, [
            'contain' => ['CmsPermission']
        ]);
        $this->set('cmsTerm', $cmsTerm);
        $this->set('_serialize', ['cmsTerm']);
    }
759486
public function actionView(string $id)
    {
        $model = $this->findModel($id);

        return $this->render('view', ['model' => $model]);
    }
1144462
public function preview($id)
	{
		if ( ! $this->auth->check())
		{
			return App::abort(404, 'Page not found');
		}

		return View::make($this->theme.'.preview', array('id' => $id));
	}
1093904
public function show($id)
    {
        $user = $this->userRepo->getById($id);
        if (!empty($user)) {
            $this->authorize('read', $user);
            return $this->respondWithSuccess($user, new UserTransformer);
        }
        return $this->respondNotFound();
    }
1055557
public function preview($id)
    {
        $campagne = $this->campagne->find($id);
        $data     = $this->mailjet->getHtml($campagne->api_campagne_id);

        return response($data);
    }
490376
public function view($id = null) {
		$block = $this->Blocks->get($id, [
			'contain' => []
		]);
		$this->set('block', $block);
	}
1209549
public function view($id = null) {
		if (empty($id)) {
			$this->Flash->error(__('record invalid'));
			return $this->Common->autoRedirect(['action' => 'index']);
		}
		$mimeType = $this->MimeTypes->get($id);
		if (empty($mimeType)) {
			$this->Flash->error(__('record not exists'));
			return $this->Common->autoRedirect(['action' => 'index']);
		}
		$this->set(compact('mimeType'));
	}
1213219
public function getAction($id)
    {
        $view = $this->responseGetById(
            $id,
            function($id) {
                return $this->getDoctrine()
                    ->getRepository(self::$entityName)
                    ->find($id);
            }
        );

        return $this->handleView($view);
    }
810520
public function show($id) {
        if ($this->model->display_the_view_button)
        {
            return view('formhandling::adminformhandling/' . config('lasallecmsadmin.admin_template_name') . '/show',
                [
                    'display_the_view_button'      => $this->model->display_the_view_button,
                    'repository'                   => $this->repository,
                    'record'                       => $this->repository->getFind($id),
                    'package_title'                => $this->model->package_title,
                    'table_name'                   => $this->model->table,
                    'model_class'                  => $this->model->model_class,
                    'resource_route_name'          => $this->model->resource_route_name,
                    'field_list'                   => $this->getFieldList(),
                    'namespace_formprocessor'      => $this->model->namespace_formprocessor,
                    'classname_formprocessor_update' => $this->model->classname_formprocessor_update,
                    'DatesHelper'                  => DatesHelper::class,
                    'HTMLHelper'                   => HTMLHelper::class,
                    'carbon'                       => Carbon::class,
                    'Config'                       => Config::class,
                    'Form'                         => Form::class,
                    'Crypt'                        => Crypt::class,
                ]);

        } else {
            return Redirect::route('admin.'.$this->model->resource_route_name.'.index');
        }
    }