Displays a particular model.
@param integer $id the ID of the model to be displayed
557951
public function actionView($id) 
	{
		$siteType = OmmuSettings::getInfo('site_type');
		if($this->permission == 0)
			$this->redirect($siteType == 0 ? Yii::app()->createUrl('site/index') : Yii::app()->createUrl('site/login'));
		
		$setting = BannerSetting::model()->findByPk(1, array(
			'select' => 'meta_keyword',
		));

		$model=$this->loadModel($id);
		BannerViews::insertView($model->banner_id);

		$this->pageTitle =  Yii::t('phrase', 'Detail Banners');
		$this->pageDescription = $model->banner_desc;
		$this->pageMeta = $setting->meta_keyword;
		$this->render('front_view', array(
			'model'=>$model,
		));
	}
634982
public function view($id = null)
    {
        $cmsPermission = $this->CmsPermission->get($id, [
            'contain' => ['CmsTerm', 'CmsContent']
        ]);
        $this->set('cmsPermission', $cmsPermission);
        $this->set('_serialize', ['cmsPermission']);
    }
648626
public function show($id)
    {
        $options = $this->getParams('includes');

        $product = Subbly::api('subbly.product')->find($id, $options);

        return $this->jsonResponse(array(
            'product' => $this->presenter->single($product),
        ));
    }
990170
public function view($id = null)
    {
        $ticket = $this->Tickets->get($id, [
            'contain' => []
        ]);

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

        $this->render(Configure::read('CM.AdminRoleViews.view'));
    }
1364247
public function show($id)
    {
        // Check the cache for item data. Otherwise get from the db.
        $item = Cache::rememberForever($this->modelTableName . ':' . $id, function () use ($id) {
            return call_user_func([$this->getModelClass(), 'findOrFail'], $id)->toArray();
        });

        return $this->generateResponse($this->modelTableName, $item);
    }
807767
public function view(? string $id = null): void
    {
        $calendar = null;

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

        $this->set('calendar', $calendar);
        $this->set('_serialize', 'calendar');
    }
1261381
public function run($id)
    {
        $model = $this->getModel($id);

        return $this->controller->render($this->view, [
            $this->nameVariableModel => $model,
        ]);
    }
622884
public function view(string $id = null)
    {
        $role = $this->Roles->get($id, [
            'contain' => ['Groups']
        ]);

        $roleCaps = $this->Roles->Capabilities->find('list')->where(['role_id' => $id])->toArray();

        $capabilities = $this->formatCapabilities(Utils::getAllCapabilities());

        $this->set('capabilities', $capabilities);
        $this->set('roleCaps', $roleCaps);
        $this->set('role', $role);
        $this->set('_serialize', ['role']);
    }
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
        ]);
    }
759486
public function actionView(string $id)
    {
        $model = $this->findModel($id);

        return $this->render('view', ['model' => $model]);
    }
1363061
public function view($id = null) {
        $task = $this->Tasks->get($id, [
            'contain' => ['Roles']
        ]);
        $this->set('task', $task);
        $this->set('_serialize', ['task']);
    }
1179106
public function show($id)
    {
        $entry = $this->entriesRepository->getById($id, $this->resource);

        return view('laramanager::entries.show')
            ->with('resource', $this->resource)
            ->with('entry', $entry)
            ->with('objects', LaramanagerObject::all());
    }
698917
public function setId( $id )
	{
		if( $id === $this->getId() ) { return; }

		$this->_values['id'] = (string) $id ;
		$this->setModified();
	}
273440
public function view(string $id = null)
    {
        $permission = $this->Permissions->get($id);

        $this->set('permission', $permission);
        $this->set('_serialize', ['permission']);
    }
902798
public function actionView($id)
    {
        $model = $this->findModel($id);
        $viewPostUrl = $this->getViewPostUrl($model);

        return $this->render('view', [
            'model' => $model,
            'viewPostUrl' => $viewPostUrl,
        ]);
    }
386953
public function show($id)
    {
        if(Request::isAjax()){
            $user = null;
            $message = '';

            try{
                $user = Sentry::findUserById($id);
            }catch(Exception $e){
                $message = $e->getMessage();
            }


            Response::headers()->set('Content-Type', 'application/json');
            Response::setBody(json_encode(
                array(
                    'success'   => !is_null($user),
                    'data'      => !is_null($user) ? $user->toArray() : $user,
                    'message'   => $message,
                    'code'      => is_null($user) ? 404 : 200
                )
            ));
        }else{

        }
    }