Show section

@Route("/{id}", name="cp_terms_admin_section_show", requirements={"id": "\d+"})
@Template()
193259
public function showAction(Request $request, $id)
    {
        $prefix = '';

        if ($request->query->get('prefix')) {
            $prefix = $request->query->get('prefix');
        }

        $section = $this->getSection($id, false);
        $terms = $section->getTerms();

        return array(
            'section' => $terms->getRoot(),
            'terms' => $terms,
            'prefix' => $prefix
        );
    }
188239
public function listSections(Request $request)
    {
        if ($request->query->has('identifier')) {
            $sections = array(
                $this->loadSectionByIdentifier($request),
            );
        } else {
            $sections = $this->sectionService->loadSections();
        }

        return new Values\SectionList($sections, $request->getPathInfo());
    }
1092833
public function showAction($id, $extra) {
        $entity = $this->container->get("layout.read_handler")->get($id);
        $delete_form = $this->container->get("layout.form_handler")->createDeleteForm($id);


//        $route_collection = $this->container->get('router')->getRouteCollection()->all();
//        echo '<pre>';
//        if(is_object($route_collection))
//            print_r(get_class_methods($route_collection));
//            print_r($route_collection);
//            
//            echo '</pre>';

        $layout = str_replace(":show.html.twig", ":display.html.twig", $this->container->get("request")->get('_layout'));

        $params = array(
            "entity" => $entity
            , "extra" => $extra
        );

        return new Response($this->container->get('templating')->render($layout, $params));
    }
618396
public function display()
    {
        $path = func_get_args();

        $count = count($path);
        if (!$count) {
            return $this->redirect('/');
        }
        $page = $subpage = null;

        if (!empty($path[0])) {
            $page = $path[0];
        }
        if (!empty($path[1])) {
            $subpage = $path[1];
        }
        $this->set(compact('page', 'subpage'));

        try {
            $this->render(implode('/', $path));
        } catch (MissingTemplateException $e) {
            if (Configure::read('debug')) {
                throw $e;
            }
            throw new NotFoundException();
        }
    }
1221428
public function sectionTemplatesInsert()
	{
		$filename = arg('name');
		$filter = new Eresus_FS_NameFilter();
		$filename = $filter->filter($filename);

		if ('' === $filename)
		{
			$filename = uniqid();
		}

		if ($filename != arg('name'))
		{
            Eresus_Kernel::app()->getPage()->addErrorMessage(
                sprintf(ADM_THEMES_FILENAME_FILTERED, $filename));
		}

		$templates = Templates::getInstance();
		$templates->add($filename, '', arg('code'), arg('desc'));
		HTTP::redirect(arg('submitURL'));
	}
1246674
public function show($id)
    {
        $ticket = $this->tickets->findOrFail($id);

        list($priority_lists, $category_lists, $status_lists) = $this->PCS();

        $close_perm = $this->permToClose($id);
        $reopen_perm = $this->permToReopen($id);

        $cat_agents = Models\Category::find($ticket->category_id)->agents()->agentsLists();
        if (is_array($cat_agents)) {
            $agent_lists = ['auto' => 'Auto Select'] + $cat_agents;
        } else {
            $agent_lists = ['auto' => 'Auto Select'];
        }

        $comments = $ticket->comments()->paginate(Setting::grab('paginate_items'));

        return view('ticketit::tickets.show',
            compact('ticket', 'status_lists', 'priority_lists', 'category_lists', 'agent_lists', 'comments',
                'close_perm', 'reopen_perm'));
    }
108747
protected function renderSection($sectionName, $sectionData, OutputInterface $output, FormatterHelper $formatter)
    {
        $output->writeln('');
        $output->writeln('');
        $optionsHeader = $formatter->formatSection($sectionName, '');
        $output->writeln($optionsHeader);

        foreach ($sectionData as $serviceId => $service) {
            $output->writeln('');
            $output->writeln(" - <comment>$serviceId</comment>:");

            // Class
            $output->writeln('');
            $output->writeln("     <comment>Class</comment>: ${service['class']}");

            // Routes
            $output->writeln('');
            $output->writeln('     <comment>Routes</comment>:');
            foreach ($service['routes'] as $consumerRoute) {
                $output->writeln("     - $consumerRoute");
            }

            // Options
            if (!empty($service['options'])) {
                $output->writeln('');
                $output->writeln('     <comment>Options</comment>:');
                foreach ($service['options'] as $consumerOptionName => $consumerOption) {
                    $output->writeln("     - <comment>$consumerOptionName</comment>:");
                    $output->writeln("         $consumerOption[0]");
                    if (!empty($consumerOption[1])) {
                        $output->writeln('         Accepted values:');
                        foreach ($consumerOption[1] as $value => $valueDescription) {
                            $output->writeln("         - <comment>$value</comment>: $valueDescription");
                        }
                    }
                }
            }
        }
    }
850261
def dynamic_content_item_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/dynamic_content/items/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
1353136
public function show(Request $request, $id)
    {
        // Set roles that have access
        $request->user()->authorizeRoles(['admin']);

        $pagetype = PageType::findOrFail($id);
        $fields = $pagetype->fields;
        return view('page::pagetypes.show', ['pagetype' => $pagetype, 'fields' => $fields]);
    }
500983
public function sectionTemplates()
	{
		Eresus_Kernel::app()->getPage()->title .= ADM_T_DIV.ADM_THEMES_TEMPLATES;

		$result = '';
		switch (arg('action'))
		{
			case 'update':
				$this->sectionTemplatesUpdate();
				break;
			case 'insert':
				$this->sectionTemplatesInsert();
				break;
			case 'add':
				$result = $this->sectionTemplatesAdd();
				break;
			default:
				if (arg('delete'))
				{
					$this->sectionTemplatesDelete();
				}
				elseif (arg('id'))
				{
					$result = $this->sectionTemplatesEdit();
				}
				else
				{
					$result = $this->sectionTemplatesList();
				}
		}
		return $result;
	}
241855
public function view() {
		$view = $this->_get_args_for_template_part();
		$view = apply_filters( 'inc2734_wp_view_controller_view', $view );
		Helper\get_template_part( $view['slug'], $view['name'] );
	}
773126
public function show($id)
    {
        $event = $this->repository->find($id);

        if (empty($event)) {
            abort(404);
        }

        return view('cms-frontend::events.'.$event->template)->with('event', $event);
    }
35562
public function renderSettingsSection($section)
    {
        if (!isset($this->settingSections[$section['id']]))
            return;

        $settingSection=$this->settingSections[$section['id']];

        echo "<a name='{$section['id']}'></a>";

        if (is_array($settingSection['description'])) {
			foreach($settingSection['description'] as $description) {
				echo "<p>$description</p>";
			}
        } else {
	        echo "<p>{$settingSection['description']}</p>";
        }
    }
1032396
public function show($id)
    {
      $user  = $this->users->findOrFail($id);
      return \View::make('admin.users.show', [
        'user'              =>  $user,
        'title'              => 'view',
      ]);
    }
442736
public function actionClassic()
	{
		$this->pageTitle = Yii::t('phrase', 'Classic Template | Dora. - Coming Soon Page Template');
		$this->pageDescription = '';
		$this->pageMeta = '';
		$this->render('/dora/template/front_classic');
	}
963911
def ticket_form_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/ticket_forms/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
328125
public function showAction()
    {
        $this->isGranted('VIEW');

        $this->container->get('ekyna_admin.menu.builder')
            ->breadcrumbAppend('settings', 'ekyna_setting.parameter.label.plural');
        
        $manager = $this->getSettingsManager();
        $schemas = $this->getSettingsRegistry()->getSchemas();
        $settings = [];

        foreach($schemas as $namespace => $schema) {
            $settings[$namespace] = $manager->loadSettings($namespace);
        }

        return $this->render('EkynaSettingBundle:Settings:show.html.twig', [
            'settings'   => $settings,
            'labels'     => $manager->getLabels(),
            'templates'  => $manager->getShowTemplates(),
        ]);
    }