The Complete Project Source Code Platform

Kashipara.com is a community of ONE million programmers and students, Just like you, Helping each other.Join them. It only takes a minute: Sign Up

Job Resume Template

favorite CodeIgniter Job Interview Questions And Answers


Why don't preparation your interviews. Best and top asking questions CodeIgniter questions and answers. Prepare your job CodeIgniter interview with us. Most frequently asked questions in CodeIgniter interview. Top 10 most common CodeIgniter interview questions and answer to ask. CodeIgniter most popular interview question for fresher and experiences. We have good collection of CodeIgniter job interview questions and answers. Ask interview questions and answers mnc company.employee ,fresher and student. CodeIgniter technical questions asking in interview. Complete placement preparation for major companies tests and CodeIgniter interviews,Aptitude questions and answers, technical, interview tips, practice tests, assessment tests and general knowledge questions and answers.


Free Download CodeIgniter Questions And Answers Pdf.


favorite CodeIgniter FAQ CodeIgniter Interview Questions and Answers for Experiences and Freshers.



What is CodeIgniter?

CodeIgniter is open source, web application framework for building websites using php which is based on MVC pattern and which is most simple framework and easily learn. It is mostly known for it’s speed as compare to other frameworks in php.also easy create crud application.

CodeIgniter   jayvik 2016-05-30 06:05:29

When and who developed CodeIgniter?

The first public version of CodeIgniter was released on February 28, 2006.

CodeIgniter   jayvik 2016-05-30 06:06:12

What is the goal of CodeIgniter?

The goal is to enable you to develop projects with much faster than you could if you were writing code from scratch by providing a rich set of libraries for commonly needed tasks as well as a simple interface and logical structure to access these libraries.

CodeIgniter   jayvik 2016-05-30 06:06:38

What is current version of CodeIgniter?

CodeIgniter 3.0.6 is the current version of the framework as of April, 2016. CodeIgniter 2.2.6 is the legacy version of the framework.

CodeIgniter   jayvik 2016-05-30 06:07:27

What are the features of CodeIgniter?

Below is the list of features of CodeIgniter:

  • It is free to use as for open source framework.
  • It is light weight. The core system requires only a few very small libraries. Not like other frameworks that require heavy file libraries.
  • CodeIgniter is Fast. It is faster than any other framework in php.
  • The URLs generated by CodeIgniter are clean and search engine friendly. You will change any url to what ever you want from files.
  • CodeIgniter is Extensible. The system can be easily extended through the use of your own libraries, helpers, or through class extensions or system hooks.
  • CodeIgniter Uses MVC (Model View Controller) which allows great separation between logic and presentation.
  • CodeIgniter requires nearly zero configuration, does not require you to use the command line, not forced to learn a templating language.
  • Full Featured database classes with support for several platforms, Security and XSS Filtering, Error Logging.

CodeIgniter   jayvik 2016-05-30 06:08:28

Explain MVC in CodeIgniter.

Model–View–Controller (MVC) is an architecture that separates the representation of information from the user’s interaction with it.

Controller: The Controller serves as an intermediary between the Model, the View. controller mediates input, converting it to commands for the model or view.

Model: The Model represents your data structures. Typically your model classes will contain functions that help you retrieve, insert, and update information in your database.The model consists of application data and business rules.

View: The View is the information that is being presented to a user. A View will normally be a web page. A view can be any output representation of data.

CodeIgniter   jayvik 2016-05-30 06:09:44

Explain how you can enable CSRF (Cross Site Request Forgery) in CodeIgniter?

You can activate CSRF (Cross Site Request Forgery) protection in CodeIgniter by operating your application/config/config.php file and setting it to:

$config['csrf_protection'] = TRUE;

If you avail the form helper, the form_open() function will insert a hidden csrf field in your forms automatically.

CodeIgniter   jayvik 2016-05-30 06:10:43

Explain routing in CodeIgniter?

In CodeIgniter, the way PHP files served is different rather than accessing it directly from the browser. This process is called routing. Routing in CodeIgniter gives you freedom to customize the default URL pattern to use our own URL pattern according to the requirement.
So, whenever there is a request made and matches our URL pattern, it will automatically direct to the specified controller and  function.

CodeIgniter   jayvik 2016-05-30 06:11:20

Explain how you will load or add a model in CodeIgniter?

 Within your controller functions, models will typically be loaded.

You will use the function:

$this->load->model ('Model_Name');

CodeIgniter   jayvik 2016-05-30 06:14:53

Why is there a need to configure the URL routes?

Changing the URL routes has some benefits like:

  • From SEO point of view, to make URL SEO friendly and get more user visits.
  • Hide some URL element such as a function name, controller name, etc. from the users for security reasons.
  • Provide different functionality to particular parts of a system.

CodeIgniter   jayvik 2016-05-30 06:15:28

List out different types of hook point in CodeIgniter?

Different types of hook point in CodeIgniter includes:

  • post_controller_constructor
  • pre_controller
  • post_sytem
  • pre_system
  • cache_override
  • display_override
  • post_controller

CodeIgniter   jayvik 2016-05-30 06:16:02

Explain what are hooks in CodeIgniter?

CodeIgniter’s hooks feature provides a way to change the inner working of the framework without hacking the core files. In other word, hooks allow you to execute a script with a particular path within the CodeIgniter.
Usually, it is defined in application/config/hooks.php file.

The hooks feature can be globally enabled/disabled by setting the following item in the application/config/config.php file:

$config['enable_hooks'] = TRUE;

Hooks are defined in application/config/hooks.php file.

For example:

$hook['pre_controller'] = array(
 'class'    => 'MyClass',
 'function' => 'Myfunction',
 'filename' => 'Myclass.php',
 'filepath' => 'hooks',
 'params'   => array('test', 'test1', 'webs')
 );

CodeIgniter   jayvik 2016-05-30 06:12:20

How you will work with error handling in CodeIgniter?

CodeIgniter lets you build error reporting into your applications using the functions:

  • show_error(): This function will display the error message supplied to it using template application/errors/error_general.php.
  • show_404(): Function will display the 404 error message.
  • log_message(‘level’, ‘message’) :- This function lets you write messages to your log files. You must supply one of three “levels” in the first parameter, indicating what type of message it is (debug, error, info), with the message itself in the second parameter.

CodeIgniter   jayvik 2016-05-30 06:13:26

Explain what helpers in CodeIgniter are and how you can load a helper file?

In CodeIgniter, helpers are group of function in a particular category that assist you to perform specific functions. In CodeIgniter, you will find many helpers like URL helpers- helping in creating links, Text helpers- perform various text formatting routines, Cookies- helpers set and read cookies.

You can load helper file by using command $this->load->helper (‘name’) ;

CodeIgniter   jayvik 2016-05-30 06:14:07

What are the helpers in CodeIgniter?

Helpers, as the name suggests, help you with tasks. Each helper file is simply a collection of functions in a particular category. There are URL Helpers, that assist in creating links, there are Form Helpers that help you create form elements, Text Helpers perform various text formatting routines, Cookie Helpers set and read cookies, File Helpers help you deal with files etc.

Loading a helper file is quite simple using the following function:

$this->load->helper('name');

CodeIgniter   jayvik 2016-05-30 06:17:07

Explain how you can prevent CodeIgniter from CSRF?

There are several ways to protect CodeIgniter from CSRF, one way of doing is to use a hidden field in each form on the website. This hidden field is referred as CSRF token. It is nothing but a random value that alters with each HTTP request sent. As soon as it is inserted in the website forms, it gets saved in the user’s session as well. So, when the form is submitted by the users, the website checks whether it is the same as the one saved in the session. If it is same then, the request is legitimate.

CodeIgniter   jayvik 2016-05-30 06:17:40

Mention what are the security parameter for XSS in CodeIgniter?

CodeIgniter has got a cross-site scripting hack prevention filter. This filter either runs automatically or you can run it as per item basis, to filter all POST and COOKIE data that come across. The XSS filter will target the commonly used methods to trigger JavaScript or other types of code that attempt to hijack cookies or other malicious activity. If it detects any suspicious thing or anything disallowed is encountered, it will convert the data to character entities.

CodeIgniter   jayvik 2016-05-30 06:18:12

How you will use or add CodeIgniter libraries?

All of the available libraries are located in your system/libraries folder. In most cases, to use one of these classes involves initializing it within a controller using the following initialization function:

$this->load->library('class name');

CodeIgniter   jayvik 2016-05-30 06:19:47

Explain what is inhibitor in CodeIgniter?

 For CodeIgniter, inhibitor is an error handler class, using the native PHP functions like set_exception_handler, set_error_handler, register_shutdown_function to handle parse errors, exceptions, and fatal errors.

CodeIgniter   jayvik 2016-05-30 06:20:20

Explain how you can link images/CSS/JavaScript from a view in CodeIgniter?

 In HTML, there is no CodeIgniter way, as such it is a PHP server side framework. Just use an absolute path to your resources to link images/CSS/JavaScript from a view in CodeIgniter

/css/styles.css
/js/myscript.js
/images/hello.jpg

CodeIgniter   jayvik 2016-05-30 06:19:04




favorite CodeIgniter questions and answers for experienced


CodeIgniter best Interview Questions have been designed especially to get you acquainted with the nature of questions you may encounter during your interview for the subject of CodeIgniter Programming Language. here some questions that helpful for your interview. CodeIgniter 2024 job interview questions with answers. CodeIgniter for employee and fresher. Here we present some more challenging practice CodeIgniter interview questions and answers that were asked in a real interview for a CodeIgniter developer position. These questions are really good to not just test your CodeIgniter skills, but also your general development knowledge. CodeIgniter programming learning. we hope this CodeIgniter interview questions and answers would be useful for quick glance before going for any CodeIgniter job interview.