CodeIgniter Interview Questions and Answers

CodeIgniter Interview Questions and Answers

CodeIgniter is an open source PHP driven framework but it’s not a PHP substitute. Diving into CodeIgniter doesn’t mean you are leaving PHP behind. PHP is a server-side scripting language for building dynamic web-based applications.

CodeIgniter contains libraries, simple interface and logical structure to access these libraries, plug-ins, helpers and some other resources which solve the complex functions of PHP more easily maintaining a high performance. It simplifies the PHP code and brings out a fully interactive, dynamic website at a much shorter time.

CodeIgniter is loosely based on the popular model–view–controller (MVC) development pattern. While controller classes are a necessary part of development under CodeIgniter, models and views are optional. Codeigniter can be also modified to use Hierarchical Model View Controller (HMVC) which allows developers to maintain modular grouping of Controller, Models and View arranged in a sub-directory format.

The first public version of CodeIgniter was released by EllisLab on February 28, 2006. Codeigniter was launched just a year after the introduction of CakePHP. Like Cake it has gained many followers in quick succession. Current version is 3.1.11 (SEP 19, 2019).

What is codeigniter?

What are the features of codeigniter?

Explain Codeigniter File Structure?

Explain Application Flow Chart in codeigniter?

Explain MVC in Codeigniter?

What are the hooks in codeigniter?

How you will load a model in codeigniter?

What are the helpers in codeigniter?

How you will use or add codeigniter libraries?

How you will work with error handling in codeigniter?

How to access config variable in codeigniter?

How to unset session in codeigniter?

How do you use aliases with autoloading models in codeigniter?

How to get random records in mysql using codeigniter?

How to print SQL statement in codeigniter model?

What are the security parameter for XSS in CodeIgniter?

What is the default URL pattern used in Codeigniter framework?

How do you get last insert id in codeigniter?

How do you set default timezone in codeigniter?

What are the pros and cons of CodeIgniter?