[eluser]behnampmdg3[/eluser]
I am trying hard to keep my views php free.
I have a few solutions in mind that all work fine. But I want to see some others opinion. How do you deal with this code? Do u leave it as it is? Move it to controller? How do you deal with selected option?
Code:
<?php
$name = 'shirts';
$options = array('small'=> 'Small Shirt', 'large'=> 'Large');
$selected = array('small');
echo form_dropdown($name, $options, $selected);
?>
Thanks