Professional CodeIgniter

(singke) #1

Chapter 7: Improving the Dashboard


217


echo form_dropdown(‘status’,$options) .” < /p > ”;

echo form_submit(‘submit’,’create color’);
echo form_close();
? >

If you click the “ create color ” link from the colors index, you should see a form similar to Figure 7 - 11.

Figure 7-11


Now that you have a Create form, go ahead and create four basic colors: red, green, yellow, and blue. By
the time you ’ re done, you should have a colors index that looks like Figure 7 - 12.
Free download pdf