Show a single post.
@param string $postName The name of the post to retrieve.
@return \View
558245
public function showPost($category, $postName)
    {
        if (!$this->post->exists($category, $postName)) {
            return \Response::view($this->theme.'.404', array('global' => $this->global), 404);
        }

        $post = $this->post->getPost($category, $postName);
        $category = $this->category->getCategory($category);

        $viewParamaters = array(
            'post' => $post,
            'global' => $this->global,
            'category' => $category
        );

        return \View::make($this->theme.'.post', $viewParamaters);
    }
156190
public function pageName($pageName = null)
    {
        if (null === $pageName) {
            return $this->pageName;
        }

        $this->pageName = $pageName;

        return $this;
    }
758929
public function show()
    {
        return View::make($this->viewPrefix."location.$this->template", [
            'lat'      => $this->getLat(),
            'lng'      => $this->getLng(),
            'address'  => $this->getAddress(),
            'title'    => $this->getTitle(),
            'postcode' => $this->getPostcode(),
            'location' => $this->getLocation(),
        ]);
    }
1233682
public static function get_post_id_by_name( $post_name ) {
		global $wpdb;
		$query = $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_name = %s LIMIT 1", $post_name);
		$result = $wpdb->get_row($query);
		if ( !$result ) {
			return null;
		}
		return $result->ID;
	}
467067
public function display() {

		// Compatibility with core WP's template parts.
		$this->templatePartCompat();

		if ( $this->template() ) {

			// Maybe remove core WP's `prepend_attachment`.
			$this->maybeShiftAttachment();

			// Make the `$data` variable available to the template.
			$data = $this->data;

			// Extract the data into individual variables. Each of
			// these variables will be available in the template.
			if ( $this->data instanceof Collection ) {
				extract( $this->data->all() );
			}

			// Load the template.
			include( $this->template() );
		}
	}
121762
public function indexAction ($get, $post, $data)
    {
        $view = new View();
        
        // Set Page title
        Registry::set('APP.title', 'Home :: ' . Registry::get('APP.title'));
        
        // Set cache
        $view->cache = $this->db->cacheGet();   
        $view->get = $get;
        $view->post = $post;
        $view->data = $data;
        $view->request = Registry::get('Request');        
        
        return $view->render();
    }
897418
public function getShowByName($showName, $isLinkName = false)
  {
    $response = $this->request('/GetShowByName/' . $showName . '/' . $isLinkName);
    if ( $response->response->status == 'false' )
      return null;
    $show = $response->response;

    $show = $this->formatShow($show);

    return $show;
  }
1345310
public function getPostMetaQuery($postId, $metaName)
    {
        return $this->createQueryBuilder('m')
            ->innerJoin('m.post', 'p')
            ->where('m.key = :metaName')
            ->andWhere('p.id = :postId')
            ->setParameter('postId', $postId)
            ->setParameter('metaName', $metaName)
            ->getQuery();
    }
276871
public function show($id)
    {
        $subscriber = $this->subscriber->find($id);
        $newsletter = $this->newsletter->getAll();

        return view('newsletter::Backend.subscribers.show')->with(['subscriber' => $subscriber , 'newsletter' => $newsletter]);
    }
451826
public function render($routeName)
    {
        $breadcrumb = $this->collection->get($routeName);

        if (null === $breadcrumb) {
            return '';
        }

        return view('avored-framework::breadcrumb.index')
                ->with('breadcrumb', $breadcrumb);
    }
605845
public function actionIndex()
	{
		$searchModel = new PostSearch;
		$dataProvider = $searchModel->search($_GET);

		return $this->render('index', [
			'dataProvider' => $dataProvider,
			'searchModel' => $searchModel,
		]);
	}
388110
protected function getPostsListView()
    {
        if (! isset($this->viewsData['postsListView'])) {
            throw new \Exception('The postsListView config value is missing.');
        }

        if (! $this->viewFactory->exists($this->viewsData['postsListView'])) {
            throw new \Exception(sprintf('The "%s" view is not found. Make sure the postsListView configuration key is correct.', $this->viewsData['postsListView']));
        }

        return $this->viewsData['postsListView'];
    }
189292
public function actionView()
	{
		$post=$this->loadModel();
		$comment=$this->newComment($post);

		$this->render('view',array(
			'model'=>$post,
			'comment'=>$comment,
		));
	}
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,
        ]);
    }
795281
protected function view(DataMap $params, ?string $viewName = null): ViewResult
    {
        if ($viewName == null) {
            $routeInfo = Application::$app->routeInfo;
            $viewName = $routeInfo->controllerName . '/' . $routeInfo->actionName;
        }
        return new ViewResult($viewName, $this->layout, $params);
    }
1020264
public function show($slug)
	{
		$post = $this->posts->findBySlug($slug);

		if ( ! $post)
		{
			return App::abort(404, 'Page not found');
		}

		return View::make($this->theme.'.post', compact('post'));
	}
1059480
public static function getGetPost($variableName)
    {

        $value = null;

        if (isset($_GET[$variableName])) {
            $value = $_GET[$variableName];
        }

        if (isset($_POST[$variableName])) {
            $value = $_POST[$variableName];
        }

        $value = self::stripSlashesDeep($value);

        return $value;
    }