First123Last
1 of 9 pages
  1. A
    /system/controller/config/config.php

    B
    /system/application/config/config.php

    C
    /system/view/config/config.php

    D
    /system/application/libraries/config.php

    Explanation: Not available 

    1. Twitter
    2. Google+
  2. A
    <?php
    class HelloWorld extends Controller
     {
    function HelloWorld()
     {
    parent::Controller();
     }
    function index()
    {
    echo("Hello, World!");
     }
    }
    ?>

    B
    <?php
    class Helloworld extends Controller
    {
    function HelloWorld()
    {
    parent::controller();
    }
    function index()
    {
    echo("Hello, World!");
    }
    }
    ?>

    C
    <?php
    class Helloworld extends Controller
    {
    function HelloWorld()
    {
    parent:Controller();
    }
    function index()
    {
    echo("Hello, World!");
    }
    }
    ?>

    D
    <?php
    class Helloworld extend Controller
    {
    function HelloWorld()
    {
    parent::Controller();
    }
    function index()
    {
    echo("Hello, World!");
    }
    }
    ?>

    Explanation: Not available 

    1. Twitter
    2. Google+
  3. A
    <?php
    class Mymodel extends model{
     function Mymodel(){
      parent::Model();
     }
    }
    ?>
    

    B
    <?php
    class Mymodel extend Model{
      function Mymodel(){
        parent::Model();
      }
    }
    ?>
    

    C
    <?php
    class Mymodel extends Model{
     funtcion Mymodel(){
       parent:Model();
     }
    }
    ?>
    

    D
    <?php
    class Mymodel extends Model{
     function Mymodel(){
      parent::Model();
     }
    }
    ?>
    

    Explanation: Not available 

    1. Twitter
    2. Google+
  4. A
    $this->load->model('model_name');

    B
    $this->load->model('sub_folder/model_name');

    C
    $this->model_name->function_name();

    D
    None

    Explanation: Not available 

    1. Twitter
    2. Google+
  5. A
    $this->load->view('view_name');

    B
    $this->load->view(view_name);

    C
    $data['title'] = "My Web Page";
    $this->load->view('view_name', $data);

    D
    $data['title'] = "My Web Page";
    $this->load->view('view_name',data);

    Explanation: Not available 

    1. Twitter
    2. Google+
  6. A
    $this->load->library(‘name’);

    B
    $this-> library -> load (‘name’);

    C
    $this->laod->library(‘name’);

    Explanation: Not available 

    1. Twitter
    2. Google+
First123Last
1 of 9 pages