View method

@param string $id Group id.
@return \Cake\Http\Response|void|null
@throws \Cake\Http\Exception\NotFoundException When record not found.
764946
public function view(string $id)
    {
        $group = $this->Groups->get($id, [
            'contain' => ['Users' => function ($q) {
                return $q->select(['Users.id', 'Users.username', 'Users.first_name', 'Users.last_name']);
            }]
        ]);

        $this->set('group', $group);
        $this->set('_serialize', ['group']);
    }
1087998
public function view($id = null)
    {
        $user = $this->Users->findById($id)
            ->contain(['Groups' => ['fields' => ['label']]])
            ->firstOrFail();

        $this->set(compact('user'));

        if (getConfig('users.login_log')) {
            $this->set('loginLog', $this->LoginRecorder->setConfig('user', $id)->read());
        }
    }
1061054
public function view($id = null) {
		$queueProcess = $this->QueueProcesses->get($id, [
			'contain' => []
		]);

		$this->set(compact('queueProcess'));
		$this->helpers[] = 'Tools.Format';
		$this->helpers[] = 'Tools.Time';
		$this->helpers[] = 'Shim.Configure';
	}
1138313
public function getEdit($id = null)
    {
        $group = Sentinel::getRoleRepository()->find($id);

        // Get the group's information
        if($group == null)
        {
            // Prepare the error message
            $error = Lang::get('base.groups.not_found');

            // Redirect to the post management page
            return Redirect::route('groups')->with('error', $error);
        }

        $groups = null;

        $groups2 = Sentinel::getRoleRepository()->all(['id', 'name']);

        foreach ($groups2 as $g)
            $groups[$g->id] = $g->name;

        // Show the page
        return View('admin.groups.edit', compact('group', 'groups'));
    }
990170
public function view($id = null)
    {
        $ticket = $this->Tickets->get($id, [
            'contain' => []
        ]);

        $this->set('ticket', $ticket);
        $this->set('_serialize', ['ticket']);
    }
239342
protected function findModel($id)
    {
        $class = $this->modelClass;
        if (($model = $class::findOne($id)) !== null) {
            return $model;
        } else {
            throw new NotFoundHttpException('The requested page does not exist.');
        }
    }
807767
public function view(? string $id = null): void
    {
        $calendar = null;

        $calendar = $this->Calendars->get($id);

        $this->set('calendar', $calendar);
        $this->set('_serialize', 'calendar');
    }
477944
public function show($id)
	{
		$entity = $this->getModel()->getRepository()->getById($id);

		return $this->response()
			->item($entity)
			->view($this->getView('show'), [
				'entity' => $entity
			]);
	}
902798
public function actionView($id)
    {
        $model = $this->findModel($id);
        $viewPostUrl = $this->getViewPostUrl($model);

        return $this->render('view', [
            'model' => $model,
            'viewPostUrl' => $viewPostUrl,
        ]);
    }
1244788
public function actionView($id)
    {
        $model = $this->findModel($id);

        return $this->render('view', ['model' => $model, 'items' => $this->getItems($id)]);
    }
516069
public function view($id = null) {
        $cmsTermTaxonomy = $this->CmsTermTaxonomy->get($id, [
            'contain' => ['CmsTerm', 'CmsTermRelation']
        ]);
        $this->set('cmsTermTaxonomy', $cmsTermTaxonomy);
        $this->set('_serialize', ['cmsTermTaxonomy']);
    }
759486
public function actionView(string $id)
    {
        $model = $this->findModel($id);

        return $this->render('view', ['model' => $model]);
    }
461656
public function find($id)
    {
        try
        {
            $model = $this->model->findOrFail($id);
        }
        catch(ModelNotFoundException $e)
        {
            throw new NotFoundException;
        }

        return $model;
    }
1171253
public function view($id = null) {
		$cell = $this->Cells->get($id, [
			'contain' => []
		]);
		$this->set('cell', $cell);
	}
882864
public function getShow($id)
    {
        $response = $this->modelService->getBy($id);

        //return resource listing view
        return view(\OogleeUConfig::get('config.user_view.view'), compact('response'));
        
    }
1063744
public function view($id = null) {
		if (!$this->Printer->exists($id)) {
			throw new NotFoundException(__('Invalid printer'));
		}
		$options = array('conditions' => array('Printer.' . $this->Printer->primaryKey => $id));
		$this->set('printer', $this->Printer->find('first', $options));
	}
863491
public function view($id = null) {
		$country = $this->Countries->get($id);

		$this->set(compact('country'));
	}