Professional CodeIgniter, Thomas Myer
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
c07.indd 208
c07.indd 208
6/10/08 5:36:45 PM
6/10/08 5:36:45 PM