click below
click below
Normal Size Small Size show me how
IT0049 SA2
Web System Technologies
| Question | Answer |
|---|---|
| It is a class file that can be associated with a URI | Controller |
| The default controller can be set from which configuration file: Config autoload Database Routes | Routes |
| Class names must start with an uppercase letter | True |
| CodeIgniter will intelligently handle multiple calls to $this->load->view() from within a controller | True |
| Data is passed from the controller to the view by way of an array in the second parameter of the view loading method | True |
| The .php file extension does not need to be specified unless you use something other than .php | True |
| Views are called directly and must be loaded by a controller | False |
| Controllers are the heart of your application, as they determine how HTTP requests should be handled | True |
| _______ is an Application Development Framework - a toolkit - for people who build web sites using PHP | CodeIgniter |
| In this example: example.com/class/function/ID/foo/bar, what is the controller class? | class |
| An example of storing view within sub-directories: $this->load->view('directory_name/file_name'); | True |
| List features of CodeIgniter: Model View Controller support system Extremely light weight Full featured database classes with compatibility to several platforms | All of these |
| CodeIgniter can load a default controller if only your site root URL is requested | True |
| This has an invalid class name: <?php class blog extends CI_Controller{} | True (class names must start with an uppercase letter) |
| In an MVC framework, the controller acts as the orchestrator, so it is responsible for fetching a particular view | True |
| Views are never called directly; they must be loaded by a controller | True |
| A view is simply a web page, or a page fragment (header, footer) and can be embedded within other views | True |
| A controller is a class file that be associated with a URI | True |
| In the example: example.com/index.php/blog/, CodeIgniter would attempt to? Call a function blog Find a controller named Blog.php Create a class blog | Find a controller named Blog.php |
| An example of storing view within sub-directories: $this->view('subdirectory_name/file_name'); | False |
| The application/config/routes.php file determines which controller is called by default | True |
| Controller should extend the parent controller class so that it can inherit all its methods | True |
| If your URI contains more than two segments, they will be passed to your method as function | True |
| An example of storing view within subdirectories: $this->load->view("directory_name/file_name"); | True |