Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##
- $album = new Album_Model;
- $category = new Category_Model;
- $category_options = $category->find_all();
- $cat_options = array();
- foreach ($category_options as $option) {
- $cat_options[$option->id] = $option->name;
- }
- ///Form generating stuff
- $form->dropdown('category_id')->label(TRUE)->options($cat_options)->selected($album->category_id);
- ##
Add Comment
Please, Sign In to add comment