Error: userHelper could not be found in cakephp3.5.1

Error: userHelper could not be found in cakephp3.5.1

如何解决这个问题

Error: userHelper could not be found.

这是我在 default.ctp

中调用的 search.ctp 内部元素
<?php  echo $this->Form->create(null, ['url' => ['controller' => 'Users', 'action' => 'search']], array('type' => 'get'));  ?>  

<?php  echo $this->Form->input('username'); ?>

<?php echo $this->Form->button('Search', ['type' => 'submit']); ?>

下面是我的搜索控制器

public function search() {
   $value = $this->request->getData('username'); 
   $results = $this->Users->find('all', ['fields'=>[
        'Users.username',
        'Users.email',
        'Users.id',
        'Users.age',
        'Users.address',
        'Users.gender'
      ],
      'order' => 'Users.id ASC',
      'conditions' => array(' username LIKE' => "%".$value."%")
   ]);
   $this->set('user', $results);
   $this->set('_serialize', ['user']);
}

search.ctp 内部用户

<?php
   use Cake\ORM\TableRegistry; 
   use Cake\Filesystem\Folder;
   use App\Controller\AppController;
?>
<?php foreach ($user as $users): ?>
<?php echo $this->users->username;?>
<?php endforeach;?>

循环内的线是什么?不应该的。

$this->users->username;

我不太确定在 cakephp 3 中返回的是数组还是对象。

但是,我确定应该是这样的,

$users->username; 

$users['username'];