1. Write the functions of Email class.
The Email Class is a CodeIgniter gem. It enables you to easily send e-mails from your
application. The Email Class also serves as a wrapper class.
2. What is a config object?
Config
objects are just ways of structuring data so that it can easily be read by
programming languages.
3.
What are layouts, region and viewports?
Layout:Layout ia an
application style screen.
Viewport:A viewport is a special panel-like component
that encloses the entire layout, fitting it into the whole visible area of our browser.
Region: Regions that are laid out in the
same way as a compass, with North,South, East and West.
4. What do you understand by Desktopping?
The most pervasive example of a windowing
system is the computer desktop and opening
multiple windows representing applications
or elements of the filesystem is called Desktopping.
5.
Write down
CodeIgniter features?
CodeIgniter features:
- It is both PHP4 and PHP5 compatible.
- It also has an implementation of the Active record
pattern.
- It contains highly useful libraries and other set of
functions.
6. What is the function of MVC (Model,View,
Controller) in CodeIgniter?
MCV (Model
View Controller) is a software development design pattern. It is an
approach to separating your applications
into three segments: Models, Views, Controllers.
7. Why we use _remap() ?
We
use _remap() if we wish to easily remap our function calls in order to provide
a different
Uniform
Resource Identifier structure or to remap functions instead of extending
CodeIgniter’s
routing class.
8. What is the
difference between helper and plugin? How can you load multiple helper?
A plugin should be used to add a single
function and helper is a collection of functions.
We can load multiple
helpers by:
$this->load->helper(array(‘form’,’url’,cookie’));
9. What are stored in a session when you use
session class?
When
we use session class this data is stored in a session.
- The user’s unique Session ID.
- The user’s IP address
- The user’s User Agent string
- The “last activity” timestamp
10. What is the purpose of Flash data?
Flash data is very useful, and is usually
used for informational messages such as “You have
been logged out” or “Removed user account”
.
12. What are the functions of strip_image_tags
and encode_php_tags prepping rules?
The function strip_image_tags will remove
image tags, leaving the RAW image URL.
13. What is callback function?
A callback is a function in our
Controller code that is used in place, or along with, a rule.
14. What are the functions of num_rows() and
num_fields()?
Num_rows() return a specific row by
passing the row number as a digit in the
first
parameter.
Num_fields() return the
number of fields returned by our query.
15. What is the purpose of active record
caching?
Using active record caching, we can
prevent the reset and reuse queries easily.
16. Write the lines of code to create and drop a
database using database forge.
Create
database:
$this->dbforge->create_database(‘database_name’);
Drop database:
$this->dbforge-> drop_database (‘database_name’);
$this->dbforge->create_database(‘database_name’);
Drop database:
$this->dbforge-> drop_database (‘database_name’);
17. What are the three different parts of the
codeIgniter?
The three different parts of the
codeIgniter are models,views and controllers.
18. What is a library?
A Codelgniter library is simply a class
file that abstracts functionality into easy-to-use
functions that take much of the strain
off the developer.
This comment has been removed by the author.
ReplyDeleteCan you post codeignitor mcq question?
ReplyDeleteYou Can Ask Any Topic in this website Answers & Questions & You Can Get Answer Asap ! So Why To Late ? Just Join This Community !
ReplyDelete