public function showAction()
    {
        $this->setPageTitle(sprintf($this->_('Show %s'), $this->getTopic()));

        $model    = $this->getModel();
        // NEAR FUTURE:
        // $this->addSnippet('ModelVerticalTableSnippet', 'model', $model, 'class', 'displayer');
        $repeater = $model->loadRepeatable();
        $table    = $this->getShowTable();
        $table->setOnEmpty(sprintf($this->_('Unknown %s.'), $this->getTopic(1)));
        $table->setRepeater($repeater);
        $table->tfrow($this->createMenuLinks($this->menuShowIncludeLevel), array('class' => 'centerAlign'));

        if ($menuItem = $this->findAllowedMenuItem('edit')) {
            $table->tbody()->onclick = array('location.href=\'', $menuItem->toHRefAttribute($this->getRequest()), '\';');
        }

        $tableContainer = \MUtil_Html::create('div', array('class' => 'table-container'), $table);
        $this->html[] = $tableContainer;
    }
public function showAction()
    {
        $this->setPageTitle(sprintf($this->_('Show %s'), $this->getTopic()));

        $model    = $this->getModel();
        // NEAR FUTURE:
        // $this->addSnippet('ModelVerticalTableSnippet', 'model', $model, 'class', 'displayer');
        $repeater = $model->loadRepeatable();
        $table    = $this->getShowTable();
        $table->setOnEmpty(sprintf($this->_('Unknown %s.'), $this->getTopic(1)));
        $table->setRepeater($repeater);
        $table->tfrow($this->createMenuLinks($this->menuShowIncludeLevel), array('class' => 'centerAlign'));

        if ($menuItem = $this->findAllowedMenuItem('edit')) {
            $table->tbody()->onclick = array('location.href=\'', $menuItem->toHRefAttribute($this->getRequest()), '\';');
        }

        $tableContainer = \MUtil_Html::create('div', array('class' => 'table-container'), $table);
        $this->html[] = $tableContainer;
    }
public function showAction ( ) { $ this -> setPageTitle ( sprintf ( $ this -> _ ( 'Show %s' ) , $ this -> getTopic ( ) ) ) ; $ model = $ this -> getModel ( ) ; // NEAR FUTURE:
 // $this->addSnippet('ModelVerticalTableSnippet', 'model', $model, 'class', 'displayer');
 $ repeater = $ model -> loadRepeatable ( ) ; $ table = $ this -> getShowTable ( ) ; $ table -> setOnEmpty ( sprintf ( $ this -> _ ( 'Unknown %s.' ) , $ this -> getTopic ( 1 ) ) ) ; $ table -> setRepeater ( $ repeater ) ; $ table -> tfrow ( $ this -> createMenuLinks ( $ this -> menuShowIncludeLevel ) , array ( 'class' => 'centerAlign' ) ) ; if ( $ menuItem = $ this -> findAllowedMenuItem ( 'edit' ) ) { $ table -> tbody ( ) -> onclick = array ( 'location.href=\'' , $ menuItem -> toHRefAttribute ( $ this -> getRequest ( ) ) , '\';' ) ; } $ tableContainer = \ MUtil_Html :: create ( 'div' , array ( 'class' => 'table-container' ) , $ table ) ; $ this -> html [ ] = $ tableContainer ; }
Shows a table displaying a single record from the model

Uses: $this->getModel()
$this->getShowTable();
Shows a table displaying a single record from the model