[Solved] Select Form Question |
On my user form I can select a list of permission groups available.
On my user table there is a column where called permission_group and that has permission group user is in. The select form on my view can only currently show what permission names are available. I would like to know how on the select form that can show that users permission_group first. $data['permission'] = $user_info['permission_group']; PHP Code: public function edit() { View Quote:<div class="form-group">
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
Why not have their current group selected instead of showing it "first" (I'm assuming you mean list their current group as first option in the select)? CI's form helpers do that for you if you set it up.
(03-24-2015, 07:51 AM)CroNiX Wrote: Why not have their current group selected instead of showing it "first" (I'm assuming you mean list their current group as first option in the select)? CI's form helpers do that for you if you set it up. If you have a codeigniter better way of doing it would be good. But had a coffee break and then Thought of this PHP Code: <div class="form-group">
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Welcome Guest, Not a member yet? Register Sign In |