Chapter 11. Utility Classes and Tools

In this chapter, we will cover:

  • Working with the Set class
  • Manipulating strings with the String class
  • Sending an e-mail
  • Detecting file types with MagicDb
  • Throwing and handling exceptions

Introduction

This chapter introduces a set of utility classes and helpful techniques that improve the architecture of a CakePHP application.

The first recipe shows how to work with a CakePHP class that optimizes the manipulation of arrays. The second recipe shows how to manipulate strings with CakePHP's String class. The third recipe shows how to send an email using the Email component. The fourth recipe shows how to use the MagicDb class to detect the type of a file.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.144.108