1. Home
  2. Docs
  3. PHP Style Guide
  4. One File per Class

One File per Class

Use separate files for each class, unless the classes are closely related. An example of a CodeIgniter file that contains multiple classes is the Xmlrpc library file.

Was this article helpful to you? Yes No

How can we help?