First123Last
1 of 11 pages
  1. A
    controller/config/config.php

    B
    application/config/config.php

    C
    view/config/config.php

    D
    application/libraries/config.php

    Explanation: Not available 

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

    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 11 pages