Professional CodeIgniter

(singke) #1

Chapter 7: Improving the Dashboard


233



  1. Expand, as needed, the models for orders, products, and categories. DONE.

  2. Create a dashboard view. DONE.

  3. Create CRUD (create, review, update, delete) screens for products and categories. DONE.

  4. Create import and export functions for products and categories. DONE.

  5. Add an easy way to assign products to categories and groups in batch mode. DONE.


Conclusion


In this chapter, you learned how to extend a basic set of administrative screens and add much needed
functionality, like batch operations and import/export features. You even made a fairly wide - ranging
series of changes involving colors and sizes.

In the next chapter, you ’ ll add even more features to the site, including a Newsletter tool and a simple
page manager.

Remember to keep these thoughts in mind as you continue working with CodeIgniter:

If you find yourself in a situation in which you have to rework a big part of your application,
don ’ t panic. Make a list of all the changes that need to be made, and then systematically address
those issues in your models, database tables, controllers, and views.

Learn the power of such functions as $this- > db- > insert_id() , which allows you to track
newly inserted IDs for any table.

Never hesitate to reuse functionality. If you ’ ve written model functions for an admin dashboard,
feel free to reuse those same functions on the public side.



Free download pdf