Explain how you can extend the class in codeigniter?
Answer / Sandhi Goel
In CodeIgniter, you can extend a core library, a model, or a controller by creating a new class that extends the base class. Here's an example of extending a controller:
1. Create a new PHP file for your extended controller (e.g., my_controller.php).
2. In the file, define the class and extend the base controller: <?php class MyController extends CI_Controller {n...n}
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you mean by routing in codeigniter?
How many types of hooks are there in codeigniter?
What do you mean by get_instance in codeigniter?
What is_cli() method does in codeigniter?
Explain views in codeigniter?
Explain how you can prevent codeigniter from csrf?
Explain the codeigniter library. How will you load it?
Can we allowed to call one controller from another controller in codeigniter?
Explain the codeigniter library.
Explain routing in codeigniter?
How to install codeigniter? Explain step by step.
What are sessions in codeigniter?