In UsersController:
$query = $this->User->query("SELECT name FROM Type");
$this->set('type',$query);
In view.ctp:
echo $this->Form->input('Type_id',array('options'=>$type));
This adds Admin,Type,1 and User, Type to dropdown.
I want to display only Admin and User in Dropdown.
Type Table contains only Two Columns id and type.
Thanks in advance.
$querywill give you here ?