Dot Net Interview Questions 1
Dot Net Interview Questions 1
Read the most frequently asked 50 top CodeIgniter Interview Questions and Answers for freshers
and experienced pdf, Top 50 CodeIgniter Interview Questions and Answers. Codeigniter is an
open source framework for web application. It is used to develop websites on PHP. It is loosely based
on MVC pattern, and it is easy to use compare to other PHP framework.
1) Explain what is CodeIgniter?
Codeigniter is an open source framework for web application. It is used to develop websites on PHP.
It is loosely based on MVC pattern, and it is easy to use compare to other PHP framework.
4) 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’) ;
9) Explain how you can link images/CSS/JavaScript from a view in code igniter?
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/query.php
/img/news/566.gpg
11) Mention what is the default URL pattern used in Codeigniter framework?
Codeigniter framework URL has four main components in default URL pattern. First we have the
server name and next we have the controller class name followed by controller function name and
function parameters at the end. Codeigniter can be accessed using the URL helper. For example
http://servername/controllerName/controllerFunction/parameter1/parameter2.
14) 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
41) How do I see the actual raw SQL query generated by CI’s Active Record
You can also use $this->db->get_compiled_select() , difference between get_compiled_select() and
last_query() is that get_compiled_select() gives the query string generated even if you don't run the
query against the database.
49) 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’] =