private function replaceTableElements($type = 'th')
    {
        $column = '';

        foreach ($this->getTableColumns() as $key => $value) {
            if ($value['COLUMN_NAME'] !== 'id') {
                if ($type == 'th') {
                    $tableHead = Inflector::underscoreToSpace($value['COLUMN_NAME']);
                    $column .= "\t\t\t".'<'.$type.'>'.$tableHead.'</'.$type.'>'.PHP_EOL;
                } else {
                    $rowType = '';
                    if ($this->layoutType == 'php') {
                        $rowType = '<?php echo $row->'.$value['COLUMN_NAME'].'; ?>';
                    } else {
                        $rowType = '{{row.'.$value['COLUMN_NAME'].'}}';
                    }
                    $column .= "\t\t\t".'<'.$type.'>'.$rowType.'</'.$type.'>'.PHP_EOL;
                }
            }
        }

        return $column;
    }