You are on page 1of 6

The function of ci code to return a URI segment

$this->uri->segment

It is a URI Component that serve as persistent, location-independent identifiers


URN

The default file extension for PHP file is ".php"


True

Answer PHP version that uses void return type, class constant visibility modifiers, null

types.
7.1

PHP is one of the most widely used and recognizable web technology used on the Internet.
True

PHP 3 was released in 1998.

m
er as
True

co
URN stands for?

eH w
Uniform Resource Name

o.
rs e
The function or ci code to show or call the client-side "non-existing page" error
ou urc
show_404()

PHP development began in 1995.


False
o
aC s

The first URI segment


vi y re

Controller

The third URI Segment


Parameter
ed d

The page that displays a message that the requested page was not found.
ar stu

Error 404

Andi Gutmans was the inventor of PHP.


False
is

The second URI segment


Th

Method

URI stands for?


Uniform Resources Identifier
sh

Answer What functionality was added to PHP 5.1 as interface for accessing databases?

PDO

It is the process of redirecting or remapping a controller class or method.

This study source was downloaded by 100000800270743 from CourseHero.com on 05-19-2021 10:10:21 GMT -05:00

https://www.coursehero.com/file/35331645/ansdocx/
Routing

Answer Year that PHP was officially called Personal Home Page Tools.

1995

Answer Version of PHP that uses namespace support late static binding.

5.3

Answer Version of PHP that introduces the use of superglobals.

4.1

CI function code to load the database class.


$this->load->database();

m
Element can be placed onto a web page in a pre-checked fashion by setting the checked attribute.

er as
Checkbox

co
eH w
CI method or code that display/echo error messages when form_validation->run() returns false.
Validation_errors()

o.
rs e
It is a line that is not read/executed as part of the program.
ou urc
Comment

CI method or code to set an error message in form validation.


$this->form_vaidation->set_message()
o
aC s

Query Builder class method that inserts record on the database.


vi y re

$this->db->insert()

row_array() fetch the data as a single row and result_array() fetch the data as a multi-
dimensional array.
ed d

True
ar stu

_construct() method executes when a class is created or instantiated.


True

PHP varianbles start with what symbol?


is

$
Th

CI file directory where the database configuration settings and database groups is found.
Application/config/database.php
sh

CI file directory where autoload classes and functions are defined.


Application/config/autoload.php

A variable declared within a function.


Local

Storage data in PHP

This study source was downloaded by 100000800270743 from CourseHero.com on 05-19-2021 10:10:21 GMT -05:00

https://www.coursehero.com/file/35331645/ansdocx/
Variables

Define styles for your documents, including the design, layout and variations in display for
different devices and screen sizes.
CSS

A variable declared outside a function.


Global

Query Builder or Active Record pattern in CI replaces the traditional query string in php coding.
True

CI method or code to load the form validation library.


$this->load->library('form_validation')

These are functions which are passed to another function and takes this "other function" as a
parameter.
Callbacks

m
er as
CI method or code to set a rule in form validation.

co
$this->form_validation->set_rules()

eH w
Form Helper method or code to return an HTML checkbox input type.

o.
form_checkbox()
rs e
ou urc
Matching Type. Choose the correct answer from the selection provided.

PHP’s superglobal type of variables that can


o

be accessed anywhere on the web Answer 1


application because it is stored on the
aC s

SESSION VARIABLES
browser session.
vi y re

A session variable name that checks if the Answer 2


user has privileges to the page. islogged
ed d

It is an algorithm that is used in security


Answer 3
ar stu

hashing that transforms data into a 128 bit


MD5
string.
These are session variables that are only Answer 4
is

available until the next request. FLASHDATA


Th

CI method or code to remove a session Answer 5


variable. $this->session->unset_userdata(‘item’)

CI method or code to create a session Answer 6


sh

variable. $this->session->set_userdata(‘item’, ‘value’)

CI method or code to load the session Answer 7


library. $this->load->library('session')

MySQL function to hash data into a 128 bit Answer 8


string. MD5()

This study source was downloaded by 100000800270743 from CourseHero.com on 05-19-2021 10:10:21 GMT -05:00

https://www.coursehero.com/file/35331645/ansdocx/
CI method or code to access a session Answer 9
variable. $this->session->userdata(‘item’)

These are session variable that expires Answer 10


within a given time. TEMPDATA

.htaccess file that will automatically route the index.php next to the Controller
True
CI uses Model-Viewable-Controller architecture

False
To load the view, the function is like this: $this->load->view('name');
True
is the process of redirecting or remapping a controller class or method.

m
routing

er as
co
CI, basically contains 4 main folders Application, System, User, Help Guide

eH w
False

o.
rs e
variables are just like session variables except it is only available on the next request.
ou urc
Flashdata
URI is the historical name that serve as persistent, location-independent identifiers allowing the
simple mapping of namespaces into a single URN namespace
o
aC s

False
vi y re

What do you call the 3rd, 4th segment of the URI?


Parameters
ed d

Controller is also knows as the data access layer.


ar stu

False
HTML is a requirement in Code igniter
is

True
Th

IDENTIFICATION: What do you call the 1st segment of the URI?

Controller
Meaning of URN
sh

Uniform resource name


Data Access Layer or Persistence Layer of the MVC Layered Architecture.

Model
functions to help you build your form easier and faster.

This study source was downloaded by 100000800270743 from CourseHero.com on 05-19-2021 10:10:21 GMT -05:00

https://www.coursehero.com/file/35331645/ansdocx/
Form helper
Meaning of URL.

Uniform resource locator


CodeIgniter is developed PHP.org
False
Segment is the process of redirecting or remapping a controller class or method.

False
are function that is passed to another function and takes this "other function" as a parameter
callbacks
will be loaded by the controller passing the returned data from the model.

m
er as
URI stands for Uniform Resource Identity

co
eH w
False

o.
Answer 1
rs e
It can be said as the entry point of application.
Controller
ou urc
Variables that can be accessed anywhere on the web application Answer 2
because it is stored on the browser session superglobal
o

Answer 3
Organization that sponsors CI
aC s

Ellislab
vi y re

Answer 4
You can display the error 404 page by using what function
show_404()

Answer 5
What function can be used to access session variables on webpages?
ed d

session_start()
ar stu

Answer 6
Function that fetch the data as a multi-dimentional array
result_array()

Answer 7
variables are session variables that expires with a given time limit.
is

Tempdata

Answer 8
Th

Method will execute codes once the class is created or instantiated.


__construct

Answer 9
Function that fetch the data as a single row array
row_array()
sh

File that will automatically route the index.php next to the Controller Answer 10
Form helper class helps us by returning formatted HTML form elements.

True
Method that accepts 'secondary recipients' that receives the mail just to keep them informed

This study source was downloaded by 100000800270743 from CourseHero.com on 05-19-2021 10:10:21 GMT -05:00

https://www.coursehero.com/file/35331645/ansdocx/
matches form validation rule checks 3 fields that should have an equal or same value.
False
It is any process or technology that allows users who forgot their passwords authenticate and reset
the passwords of their account

Forgot password
Method that accepts the recipient's email address

An input required to verify the user's record existence in order to reset his/her password.

Method that accepts the email's body or content

m
er as
Method that accepts the email's title or heading text

co
eH w
Method that returns a string containing any server messages, email header and email message.

o.
rs e
ou urc
Method that returns a string containing any server messages, email header and email message.
o

$this->db->insert_id() inserts an id in the database.


aC s
vi y re

False
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000800270743 from CourseHero.com on 05-19-2021 10:10:21 GMT -05:00

https://www.coursehero.com/file/35331645/ansdocx/
Powered by TCPDF (www.tcpdf.org)

You might also like