How can you extend a class in codeigniter?



How can you extend a class in codeigniter?..

Answer / Mukesh Kumar Suman

To extend a class in CodeIgniter, you can create a new file in the 'application/libraries' folder with the same name as the class you want to extend, but append '_helper' to it. In the new file, you can define your custom methods and extend the base class using the 'parent::' keyword.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CodeIgniter Interview Questions

Explain how you can extend the class in codeigniter?

1 Answers  


How to initialize a driver in codeigniter?

1 Answers  


Explain the codeigniter library. How will you load it?

1 Answers  


What are libraries in codeigniter?

1 Answers  


How does csrf work in codeigniter?

1 Answers  


Explain what is codeigniter?

1 Answers  


How to check data is updated or not in codeigniter

1 Answers  


How to create new page in codeigniter?

1 Answers  


How do I call one model's methods from a different model?

1 Answers  


What is meant by codeigniter?

1 Answers  


What are hooks in codeigniter? List them?

1 Answers  


What is inhibitor are codeigniter?

1 Answers  


Categories