Professional CodeIgniter, Thomas Myer
Chapter 6:                                                                                 Creating a Dashboard        
158
#globalnav li a {
  float: left;
  padding: 10px 12px;
  text-decoration: none;
  color: #999;
  border: none;
}
#globalnav li form{
  padding:3px 0px;
} 
Creating a Basic admin_home View
Now that the basic admin template is built along with the supporting header and footer subviews and
the CSS, it ' s time to create a basic view that will allow the administrative user to quickly access all the
tools available to them.
At first, this may seem a bit silly because links in the global nav seem to be doing the same thing. This is
really an opportunity to provide some context on those links. For your purposes, a bullet list with bold
links and a bit of explanation will do just fine. Again, you ' ll make good use of the
anchor()
   function. 
< 
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/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 
> 
c06.indd   158
c06.indd   158
6/10/08   5:36:00 PM
6/10/08   5:36:00 PM