diff --git a/src/Template/Bake/Template/index.ctp b/src/Template/Bake/Template/index.ctp index 8b5bd9e87da..e2b67cb5f8d 100644 --- a/src/Template/Bake/Template/index.ctp +++ b/src/Template/Bake/Template/index.ctp @@ -45,7 +45,7 @@ $fields = collection($fields) <% foreach ($fields as $field): %> - Paginator->sort('<%= $field %>') %>"; ?> + Paginator->sort('<%= $field %>') ?> <% endforeach; %> @@ -71,7 +71,7 @@ $fields = collection($fields) if ($isKey !== true) { if (!in_array($schema->columnType($field), ['integer', 'biginteger', 'decimal', 'float'])) { %> - -><%= $field %>) '> + -><%= $field %>) ?> <% } else { %> @@ -81,7 +81,7 @@ $fields = collection($fields) } } - $pk = "\$<%= $singularVar %>-><%= $primaryKey[0] %>"; + $pk = '$' . $singularVar . '->' . $primaryKey[0]; %> Html->link(__('View'), ['action' => 'view', <%= $pk %>]) ?> @@ -96,7 +96,7 @@ $fields = collection($fields)

Paginator->counter(); ?>