Yii PHP Framework Application Workflow

Yii PHP Framework Application Workflow


Yii is one of the major php framework and its comes with lot of inbuilt features that every php developer requires and loves. But most of the Yii Developers doesn’t really know how the Yii framework application works as well. Here is the end point to explain the process of Yii PHP Framework Application Workflow Process.

php-yii-application-workflow PHP Yii Application Workflow

  1. Request with the URL

    and the Web server handles the request by executing the bootstrap script index.php which is located in the Root Directory.
  2. The bootstrap script creates an Application instance and runs it.
  3. The Application obtains detailed user request information from an application component named request.
  4. The application determines the requested controller and action with the help of an application component named urlManager.
  5. The application creates an instance of the requested controller to further handle the user request. The controller determines that the action show refers to a method named actionShow in the controller class.
  6. The action reads a Post model whose ID is 1 from the database.
  7. The action renders a view named show with the Post model.
  8. The view reads and displays the attributes of the Post model.
  9. The view executes some widgets, embed the rendering result in a layout and displays it to the user.
Comments are closed.