CodeIgniter Interview Questions

CodeIgniter Interview Questions Download CodeIgniter Interview Questions PDF

CodeIgniter Interview Questions

Object-relational mapping (ORM) is programming technique for converting data between incompatible type systems using object-oriented programming languages. Below is the list of ORM’s supported by CodeIgniter Framework
  • DataMapper
  • Doctrine
  • Gas ORM
The following items can be loaded automatically:
  • Classes found in the libraries/ directory
  • Helper files found in the helpers/ directory
  • Custom config files found in the config/ directory
  • Language files found in the system/language/ directory
  • Models found in the models/ folder

To autoload resources, open the application/config/autoload.php file and add the item you want loading to the autoload array. You’ll find instructions in that file corresponding to each type of item.

By default, all logs in Codeigniter are stored in logs/ directory. To enable error logging you must set the “threshold” for logging in application/config/config.php. Also, your logs/ must be writable.

$config['log_threshold'] = 1;

There are three message types in Codeigniter. They are :

  • Error Messages. These are actual errors, such as PHP errors or user errors.
  • Debug Messages. These are messages that assist in debugging. For example, if a class has been initialized, you could log this as debugging info.
  • Informational Messages. These are the lowest priority messages, simply giving information regarding some process.