-1
I’m new to Cakephp and am finding it difficult to display data correctly.
// src/Template/Bookmarks/add.ctp
echo $this->Form->control('user_id', ['options' => $users,'empty' => 'Selecione']);
The above section shows me a select with the user ID, which is my foreign key, however, although I want to keep the value (value=""
) field as the ID, in the view would like the user’s email. Is there any simple way to change this view?