Question 1. What Is Codeigniter?
Codeigniter is an open supply framework for net software on PHP. It is loosely based totally on MVC sample and it's far much like CakePHP.
Question 2. What Are The Most Prominent Features Of Codeigniter?
A list of most prominent capabilities of CodeIgniter:
It is an open source framework and free to apply.
It is extraordinarily light weighted.
It is primarily based on Model View Controller (MVC) pattern.
It has full featured database lessons and support for numerous structures.
It is extensible. You can without problems make bigger machine via using your personal libraries, helpers and so forth.
PHP Interview Questions
Question three. Explain Codeigniter Architecture?
From technical point of view, CodeIgniter is dynamically instantiation (light-weighted), loosely coupled (components rely very much less on each different) and has element singularity (each class and functions are narrowly centered towards their motive).
Question 4. How Can You Add Or Load A Model In Codeigniter?
To load fashions in controller functions, use the following function:
Question 5. How Can You Connect Models To A Database Manually?
To join database manually use following syntax,
MySQL Interview Questions
Question 6. Explain Views In Codeigniter?
View folder includes all the markup documents like header, footer, sidebar, and many others. They may be reused by embedding them anywhere in controller document. They can't known as at once, they have to be loaded in the controller's report.
Question 7. How Can You Load A View In Codeigniter?
View can't be accessed directly. It is always loaded inside the controller file.
Following characteristic is used to load a view page:
MySQL Tutorial PHP+MySQL Interview Questions
Question 8. Explain Controller In Codeigniter?
A controller is the middleman between fashions and perspectives to method HTTP request and generates a web web page. It is the middle of every request on your web application.
Question nine. What Is Basic Codeigniter Url Structure?
Instead of the usage of 'query-string' approach, it makes use of a segment based totally method.
Its shape is as follows,
elegance represents controller class that desires to be invoked.
Function is the technique that is referred to as.
ID is any additional phase this is exceeded to controllers.
Drupal Interview Questions
Question 10. What Is The Default Method Name In Codeigniter?
By default controller constantly calls index technique. If you want to name a specific technique, then write it within the controller?S document and specify its call whilst calling the function.
Question eleven. Explain Remapping Method Calls In Codeigniter?
Second section of URI determines which method is being known as. If you want to override it, you may use _remap() method. The _remap technique constantly get called although URI is extraordinary. It overrides the URI
MYSQL DBA Interview Questions
Question 12. What Is Helper In Codeigniter? How Can You Load A Helper File?
Helpers are the institution of capabilities in a specific category that allow you to carry out unique features.
In CodeIgniter, there are many helpers like:
URL Helpers: helping in developing hyperlinks.
Text Helpers: carry out various text formatting workouts.
Cookies Helpers: set and examine cookies.
To load helper file, use the subsequent command:
PHP Interview Questions
Question thirteen. Explain Codeigniter Library. How Will You Load It?
CodeIgniter affords a wealthy set of libraries. It is an essential a part of CodeIgniter because it will increase the developing velocity of an application. It is placed within the system/library.
It may be loaded as follows,
Question 14. How Can You Create A Library In Codeigniter?
There are three techniques to create a library:
Creating an entire new library
Extending local libraries
Replacing local libraries
Question 15. What Is Stable Version Of Codeigniter?
Date January thirteen, 2016
PHP5 Interview Questions
Question sixteen. In Which Language Codeigniter Is Written?
Question 17. What Are The Features Of Codeigniter? Open Source Framework?
CodeIgniter is Extensible
Full Featured database classes
WordPress Interview Questions
Question 18. How To Access Config Variable In Codeigniter?
MySQL Interview Questions
Question 19. How To Unset Session In Codeigniter?
Question 20. Explain Codeigniter File Structure?
following are the folder shape :-
Joomla Interview Questions
Question 21. Explain Application Flow Chart In Codeigniter?
The following image illustrates how data flows for the duration of the device:
CodeIgniter software float:
The index.Hypertext Preprocessor serves as the front controller, initializing the base resources needed to run CodeIgniter.
The Router examines the HTTP request to decide what need to be performed with it.
If a cache file exists, it's far despatched immediately to the browser, bypassing the normal system execution.
Security. Before the software controller is loaded, the HTTP request and any consumer submitted statistics is filtered for safety.
The Controller hundreds the version, core libraries, helpers, and some other resources needed to manner the precise request.
The finalized View is rendered then despatched to the net browser to be visible. If caching is enabled, the view is cached first in order that on next requests it may be served.
Question 22. Explain Mvc In Codeigniter?
CodeIgniter is based on the Model-View-Controller development sample. MVC is a software program method that separates application common sense from presentation. In practice, it lets in your net pages to incorporate minimal scripting because the presentation is separate from the PHP scripting.
The Model represents your statistics structures. Typically your version classes will contain features that assist you retrieve, insert, and update records to your database.
The View is the facts that is being presented to a user.
A View will typically be a web page, however in CodeIgniter, a view also can be a web page fragment like a header or footer. It can also be an RSS page, or some other kind of “web page”.
The Controller serves as an middleman among the Model, the View, and every other sources had to manner the HTTP request and generate a web page.
Question 23. Can You Extend Native Libraries In Codeigniter?
Yes, we can add a few extended capability to a local library by means of adding one or strategies.
CakePHP Interview Questions
Question 24. How Can You Extend Class In Codeigniter?
You should construct a record name utility/middle/MY_Input.Personal home page and claim your class with Class MY_Input extends CI_Input to extend the native input class in CodeIgniter.
PHP+MySQL Interview Questions
Question 25. How You Will Work With Error Handling In Codeigniter?
CodeIgniter helps you to construct mistakes reporting into your programs using the functions defined below. In addition, it has an errors logging class that permits mistakes and debugging messages to be stored as textual content documents.
Show_error(‘message’ [, int $statuscode= 500 ] )
This function will show the mistake message supplied to it the usage of template software/errors/errorgeneral.Hypertext Preprocessor.
Show_404(‘web page’ [, ‘logerror’])
This feature will show the 404 blunders message furnished to it using template utility/errors/error404.Personal home page.
This characteristic helps you to write messages for your log documents. You must deliver one of 3 “levels” in the first parameter, indicating what type of message it's far (debug, errors, data), with the message itself in the 2nd parameter.
Question 26. How Do You Use Aliases With Autoloading Models In Codeigniter?
We can auto load model like this:
$autoload[‘model’] = array(array(‘usersmodel’, ‘customers’), array(‘newsmodel’, ‘news’), ‘categorymodel’);
PHP7 Interview Questions
Question 27. How To Get Random Records In Mysql Using Codeigniter?
We can use this:
Drupal Interview Questions
Question 28. What Are The Security Parameter For Xss In Codeigniter?
Question 29. Who Developed Codeigniter?
Codeigniter became evolved via ellislab Inc.
Question 30. Why Codeigniter Is Called As Loosely Based Mvc Framework?
Reason behind this is we does no longer need to comply with strict mvc pattern at the same time as creating utility.We also can capable of construct with model handiest view and controllers are sufficient to built a utility.