Professional CodeIgniter

(singke) #1

Chapter 7: Improving the Dashboard


208


< ul >
< ?php
foreach ($this- > session- > userdata(‘orphans’) as $id = > $name){
echo “ < li > $name < /li > \n”;
}
? >
< /ul >

< ?php
echo form_open(‘admin/categories/reassign’);
unset($categories[$category[‘id’]]);
echo form_dropdown(‘categories’,$categories);
echo form_submit(‘submit’,’reassign’);
echo form_close();
? >

If you load all these changes into the system and then delete a category that contains orphaned products,
you should see something like Figure 7 - 8.

Figure 7-8
Free download pdf