Welcome Guest, Not a member yet? Register   Sign In
Can't get set_select() to work
#1

[eluser]EddieX[/eluser]
Hi!

First of all I must say that I really enjoy this framework, it's really neat!

Though, I have a problem when it comes to repopulate form's and especially when I'm using select-tag and checkboxes.

I use the following in my view, which I think should do the trick but it does not...
Code:
$roles = array();
foreach($available_roles as $role)
{
    $roles[$role['id']] = $role['name'];
}

$role_dropdown = form_dropdown('role', $roles, set_value('role'));
?>

$available_roles is an array of the following format: arr[x][(id, name)], and it is set by the controller.

Any suggestions?


Messages In This Thread
Can't get set_select() to work - by El Forum - 05-21-2009, 11:53 AM
Can't get set_select() to work - by El Forum - 05-21-2009, 12:05 PM
Can't get set_select() to work - by El Forum - 05-21-2009, 12:05 PM
Can't get set_select() to work - by El Forum - 05-21-2009, 12:30 PM
Can't get set_select() to work - by El Forum - 05-21-2009, 07:44 PM
Can't get set_select() to work - by El Forum - 05-22-2009, 03:37 AM
Can't get set_select() to work - by El Forum - 05-22-2009, 08:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB