src/GridLayout.php
protected function buildTemplate()
    {
        $this->t_wrap->del('rows');
        $this->t_wrap->appendHTML('rows', '{rows}');

        for ($row = 1; $row <= $this->rows; $row++) {
            $this->t_row->del('column');

            for ($col = 1; $col <= $this->columns; $col++) {
                $this->t_col->set('Content', '{$r'.$row.'c'.$col.'}');

                $this->t_row->appendHTML('column', $this->t_col->render());
            }

            $this->t_wrap->appendHTML('rows', $this->t_row->render());
        }
        $this->t_wrap->appendHTML('rows', '{/rows}');
        $tmp = new Template($this->t_wrap->render());

        $this->template->template['rows#1'] = $tmp->template['rows#1'];

        $this->template->rebuildTags();
        $this->addClass($this->words[$this->columns].' column');
    }
protected function buildTemplate()
    {
        $this->t_wrap->del('rows');
        $this->t_wrap->appendHTML('rows', '{rows}');

        for ($row = 1; $row <= $this->rows; $row++) {
            $this->t_row->del('column');

            for ($col = 1; $col <= $this->columns; $col++) {
                $this->t_col->set('Content', '{$r'.$row.'c'.$col.'}');

                $this->t_row->appendHTML('column', $this->t_col->render());
            }

            $this->t_wrap->appendHTML('rows', $this->t_row->render());
        }
        $this->t_wrap->appendHTML('rows', '{/rows}');
        $tmp = new Template($this->t_wrap->render());

        $this->template->template['rows#1'] = $tmp->template['rows#1'];

        $this->template->rebuildTags();
        $this->addClass($this->words[$this->columns].' column');
    }
protected function buildTemplate ( ) { $ this -> t_wrap -> del ( 'rows' ) ; $ this -> t_wrap -> appendHTML ( 'rows' , '{rows}' ) ; for ( $ row = 1 ; $ row <= $ this -> rows ; $ row ++ ) { $ this -> t_row -> del ( 'column' ) ; for ( $ col = 1 ; $ col <= $ this -> columns ; $ col ++ ) { $ this -> t_col -> set ( 'Content' , '{$r' . $ row . 'c' . $ col . '}' ) ; $ this -> t_row -> appendHTML ( 'column' , $ this -> t_col -> render ( ) ) ; } $ this -> t_wrap -> appendHTML ( 'rows' , $ this -> t_row -> render ( ) ) ; } $ this -> t_wrap -> appendHTML ( 'rows' , '{/rows}' ) ; $ tmp = new Template ( $ this -> t_wrap -> render ( ) ) ; $ this -> template -> template [ 'rows#1' ] = $ tmp -> template [ 'rows#1' ] ; $ this -> template -> rebuildTags ( ) ; $ this -> addClass ( $ this -> words [ $ this -> columns ] . ' column' ) ; }
Build and set view template.
Build and set view template .