cakephp3 form ページ内リンク

<div id="search"></div>

<?php
// ×
echo $this->Form->create(null,
	['type'=>'get'],
	['controller' => 'schools', 'action' => 'index', '#' =>['id'=>'search']]
);

// 〇
echo $this->Form->create(null,
	[
		'type'=>'get',
		'url'=>[
			'controller'=>'schools', 'action'=>'index', '#'=>'search'
		]
	]
);
PAGE TOP