Professional CodeIgniter

(singke) #1

Chapter 7: Improving the Dashboard


219


Don ’ t forget to add links to Colors in the global navigation view (admin_header)! While you ’ re at it, add
a link in there for sizes, as that ’ s next on the to - do list.


< div id=’globalnav’ >
< ul >
< li > < ?php echo anchor(“admin/dashboard/index”,”dashboard”);? > < /li >
< li > < ?php echo anchor(“admin/categories/”,”categories”);? > < /li >
< li > < ?php echo anchor(“admin/products/”, “products”);? > < /li >
< li > < ?php echo anchor(“admin/colors/”, “colors”);? > < /li >
< li > < ?php echo anchor(“admin/sizes/”, “sizes”);? > < /li >
< li > < ?php echo anchor(“admin/admins/”, “users”);? > < /li >
< li > < ?php echo anchor(“admin/dashboard/logout/”, “logout”);? > < /li >
< /ul >
< /div >

One last bit of busywork: Add colors and sizes to the main dashboard view (admin_home):


< ul >
< li > < b > < ?php echo anchor(“admin/categories/”,”Manage Categories”);? >. < /b >
< br/ >
Create, edit, delete and manage product categories on your online store.
< /li >
< br/ >
< li > < b > < ?php echo anchor(“admin/products/”,”Manage Products”);? >. < /b >
< br/ >
Create, edit, delete and manage products on your online store.
< /li >
< br/ >

< li > < b > < ?php echo anchor(“admin/colors/”,”Manage Colors”);? >. < /b >
< br/ >
Create, edit, delete and manage colors available to products.
< /li >
< br/ >

< li > < b > < ?php echo anchor(“admin/sizes/”,”Manage Sizes”);? >. < /b >
< br/ >
Create, edit, delete and manage sizes available to products.
< /li >
< br/ >

< li > < b > < ?php echo anchor(“admin/admins/”,”Manage Users”);? >. < /b >
< br/ >
Create, edit, delete and manage users who can access this dashboard.
< /li >
< br/ >

< li > < b > < ?php echo anchor(“admin/dashboard/logout/”,”Logout”);? >. < /b >
< br/ >
Exit this dashboard when you’re done.
< /li >
< br/ >
< /ul >
Free download pdf