What is get_instance in codeigniter?



What is get_instance in codeigniter?..

Answer / Avinash Chandra Srivastav

get_instance() is a static method provided by the CI_Controller class in CodeIgniter. It returns an instance of the active controller, allowing you to access its properties or methods from another controller or library.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CodeIgniter Interview Questions

How you will load or add a model in codeigniter?

1 Answers  


Explain the difference between helper and library in codeigniter?

1 Answers  


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

1 Answers  


List out different types of hook point in codeigniter?

1 Answers  


Explain what is codeigniter?

1 Answers  


Is codeigniter safe?

1 Answers  


How many types of messages can you log in codeigniter?

1 Answers  


What do you mean by drivers and how we can create in codeigniter?

1 Answers  


What is cache in codeigniter?

1 Answers  


Is codeigniter object oriented?

1 Answers  


How to use core folder in codeigniter?

1 Answers  


Explain codeigniter architecture?

1 Answers  


Categories