1. Question: Actions are methods on a ________ that handle requests.

    A
    controller

    B
    components

    C
    models

    D
    views

    Note: Not available
    1. Report
  2. Question: The set method() is the main way to send data from your controller to your_________.

    A
    controller

    B
    model

    C
    action

    D
    view

    Note: Not available
    1. Report
  3. Question: The __________class is the parent class to all of your application's controllers.

    A
    ViewController

    B
    DevController

    C
    Appcontroller

    D
    controller

    Note: Not available
    1. Report
  4. Question: In cakephp, the conventional view file name is the lower cased and underscored version of the ______name.

    A
    controller

    B
    model

    C
    action

    D
    view

    Note: Not available
    1. Report
  5. Question: $this->request->is() takes a single argument in CakePHP, which can be

    A
    request method: get, put, post, delete

    B
    Some request identifier: ajax

    C
    None

    D
    Both

    Note: Not available
    1. Report
  6. Question: Which is the correct syntax of defining CakePHP form helper?

    A
    public $helper=array('Form');

    B
    public $helper='Form';

    C
    public $helpers=array('Form');

    D
    $this->helper=array('Form');

    Note: Not available
    1. Report
  7. Question: Which is not a CakePHP conventions?

    A
    Controller class names are plural, CamelCased, and end in Controller.

    B
    File names match the class names, which are CamelCased. So if you have a class MyNiftyClass, then in CakePHP, the file should be named MyNiftyClass.php

    C
    Model class names are singular and CamelCased.

    D
    Table names corresponding to CakePHP models are plural and underscored.

    E
    Field names with two or more words are underscored.

    F
    The basic pattern for view template file is /app/View/Controller/underscored_function_name.ctp

    G
    Variable name should be CamelCased.

    Note: Not available
    1. Report
  8. Question: Rather than using an auto_increment key as the primary key, you may also use char(36). CakePHP will then use a unique 36 character UUID (String::uuid) whenever you save a new record using the Model::save method.

    A
    True

    B
    False

    Note: Not available
    1. Report
  9. Question: Convention of Foreign key name of the related table followed by _id in CakePHP. Example foreign key of category table to the other table would be category_id.

    A
    True

    B
    False

    Note: Not available
    1. Report
  10. Question: Controller extensions in CakePHP is called

    A
    Behaviors

    B
    Components

    C
    Helpers

    D
    All

    Note: Not available
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd