Jnr PHP/Codeigniter Developer Question:

Download Job Interview Questions and Answers PDF

Tell me how you can extend the class in Codeigniter?

Jnr PHP/Codeigniter Developer Interview Question
Jnr PHP/Codeigniter Developer Interview Question

Answer:

To extend the native input class in CodeIgniter, you have to build a file named application/core/MY_Input.php and declare your class with

Class MY_Input extends CI_Input {

}

Download Jnr PHP/Codeigniter Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell us what are the __construct() and __destruct() methods in a PHP class?What is routing in Codeigniter?