Professional CodeIgniter, Thomas Myer

Chapter 8: Last-Minute Upgrades
257
And here ' s the update in admin_header (in bold):
<
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/pages/", "pages");?
>
<
/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/subscribers/", "subscribers");?
>
<
/li
>
<
li
>
<
?php echo anchor("admin/admins/", "users");?
>
<
/li
>
<
li
>
<
?php echo anchor("admin/dashboard/logout/", "logout");?
>
<
/li
>
<
/ul
>
<
/div
>

When all is said and done, the home page for the subscribers area should look like Figure 8 - 7 .

Figure 8 - 7


Creating the admin_subs_mail View

There is one last thing to do before revisiting the
sendemail()

function in the admin/subscribers
controller: Create the form that will allow the user to send out an e - mail to everyone on the subscriber
list. The form itself will be very simple, with a subject line, a text area for content, and a Submit button.
It ' s also a good idea to include a checkbox for sending a test e - mail only.
c08.indd 257
c08.indd 257
6/10/08 5:37:32 PM
6/10/08 5:37:32 PM


Другие страницы

 
Cкачать книги бесплатно без регистрации в электронном виде (pdf, chm, txt).Вы можете читать книги онлайн на нашем сайте литературного портала книг.Большая подборка учебников, пособий, интересных книг.Электронные книги на английском языке скачать бесплатно без смс.

OK

Loading...
...
Закрыть