• Mention two useful shorcut functions available globally in cake php

      0 comments

    Following are 2 main shortcut functions available in cakephp

    // similar to print_r(), but dumps to the view and
    // is disabled if debug isn't > 0 in config.php
    pr($anything); 
    
    // returns the correctly internationalized plural or
    // singular depending on locale.
    __n($singular, $plural, $count, $return);
    

    If you are working with CakePHP and haven’t figure it out yet, it’s worth looking through basics.php in the API docs.

  • MVC structure- cakephp

      0 comments

    What is meant by MVC (Model View Controller)?

    MODEL VIEW CONTROLLER, is a software architecture, currently considered an architectural pattern used in software engineering.
    This isolates business logic from presentation logic.

    1. The Model represents the application data
    2. The View renders a presentation of model data
    3. The Controller handles and routes requests made by the client