FORMATIVE 3 Flashcards

(13 cards)

1
Q

Class names must start with an uppercase letter.
Group of answer choices

True

False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The application/config/routes.php file determines which controller is called by default
Group of answer choices

True

False

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In the example: example.com/index.php/blog/, the , CodeIgniter would attempt to?
Group of answer choices

Create a class bolg

Find a controller named Blog.php

Call a function blog

A

find a controller named Blog.php

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In this example: example.com/class/function/ID/foo/bar, what is the controller class?
Group of answer choices

class

function

example.com

A

class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A Controller is a class file that can be associated with a URI.
Group of answer choices

True

False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The .php file extension does not need to be specified unless you use something other than .php.
Group of answer choices

False

True

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

To load a view file you will use the following method:
Group of answer choices

$this->load->data(‘name’);

$this->load->file(‘name’);

$this->load->view(‘name’);

A

$this->load->view(‘name’);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Views are called directly and must be loaded by a controller.
Group of answer choices

True

False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

An example of storing view within sub-directories: $this->view(‘subdirectory_name/file_name’);

False

True

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

An example of storing view within subdirectories: $this->load->view(“directory_name/file_name”);
Group of answer choices

False

True

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The default controller can be set from which configuration file:
Group of answer choices

Config

Database

Routes

autoload

A

Routes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

It is a class file that can be associated with a URI.
Group of answer choices

Controller

Function

Control

A

Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

CodeIgniter will intelligently handle multiple calls to $this -> load -> view() from within a controller.

False

True

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly