cerebrate/templates/element/genericElements/IndexTable/Fields/user.php

12 lines
312 B
PHP
Raw Normal View History

<?php
if (!empty($row['user'])) {
$userId = $this->Hash->extract($row, 'user.id')[0];
$userName = $this->Hash->extract($row, 'user.username')[0];
echo $this->Html->link(
h($userName),
['controller' => 'users', 'action' => 'view', $userId]
);
}
?>