If you create the $ option variable in the view, this will help you:
$options = array("key" => "value" , "key" => "value" , "key" => "value");
But if you install it on the controller, this will help you:
$this->set('options', array("key" => "value" , "key" => "value" , "key" => "value"));
- Key
- is the value in each input input option
- Value is the text of parameter tags
source share