Form->create($location) ?>
Form->control('name'); echo $this->Form->control('location'); echo $this->Form->control('categories._ids', [ 'type' => 'select', 'multiple' => true, 'val' => $selectedList, 'options' => $categoriesList, ]); ?>
Form->button(__('Submit')) ?> Form->end() ?>