CodeIgniter

Q1. What are the features of codeigniter?
Q2. Explain MVC in Codeigniter?
Q3: What are the hooks in codeigniter?
A: Hooks provides a means to tap into and modify the inner workings of the framework without hacking the core files.
Q4: How to enabled/disabled hooks feature?
A: In application/config/config.php file:
$config[‘enable_hooks’] = TRUE;
Q5: In which file hooks are defined?
A: Hooks are defined in application/config/hooks.php file.
Q6: How to add or load an model?
A: Models can be loaded and called from within controller functions.
To load a model: $this->load->model(‘Model_name’);
Q7: What are the helpers?
Q8: How to use or add codeigniter libraries?
A: All of the available libraries are located in your system/libraries folder.
$this->load->library(‘class name’);

Leave a Reply

Your email address will not be published. Required fields are marked *