adspace


How can you extend a class in codeigniter?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add / link an images/css/javascript from a view in ci?

717