Recommended 10 Entry Script source (favorites)

Source: Internet
Author: User
Tags index php yii
The portal script is the initial boot PHP script that handles the user. It is the only PHP script that an end user can request to execute directly. In most cases, the entry script for a YII application contains a simple script like the following://In a production environment, delete this line defined (' Yii_debug ') or define (' Yii_debug ', true);//contains Yii boot file require_ Once (' path/to/yii/framework/yii.php ');//Create an application instance and execute $configfile= ' path/to/config/file.php '; Yii::createwebapplication ($configFile)->run (); The script first contains the YII framework's boot file Yii

1. Yii Framework Official Tutorial Supplemental article 5--basics: Portal Script

Summary: The portal script is the initial boot PHP script that handles the user. It is the only PHP script that an end user can request to execute directly. In most cases, the entry script for a YII application contains a simple script such as the following://In the production environment ...

2. Yii2.0 Portal Script

Summary: The portal script is the first loop in the app launch process, and an app (whether it's a web app or a console app) has only one portal script. The end user's request instantiates the app through a portal script and forwards the request to the app. Portals for WEB applications

3. YII2 Framework Basics Learning-Controller Yii cross-controller Invoke method Yii2 invoke Yii across controllers set default control

Introduction: Controller, YII:YII2 Framework Basics Learning-Controller: Related installation and configuration reference Chinese documentation, step by step down. Here is a brief summary of what you have learned these days. 1, YII application structure: Each application has a portal script web/index.php, which is the only PHP script that can be accessed throughout the application. An application processes the request as follows: 1. The user initiates a request to the portal script web/index.php. 2. The portal script loads the application configuration and creates an application instance to process the request. 3. Apply a route that resolves requests through the request component

4. Yii Framework URL parsing problem

Introduction: First If you do not configure Urlmanager in config main PHP, then the process is as follows (from Yii official website) The user issued an Access URL http:www example COM index php?r=post show&id =1 request, the WEB server executes the portal script by the index p

5. Yii related questions, welcome message

Introduction: Yii problem, welcome message configuration: xp+apache2.2.4+php5.2.5+yii1.1.3 problem: Entrance script index.php can go in, but when entered http://127.0.0.1/index.php?r= User when Apache error stop, error module is Php_pdo_mysql.dll. But I yii requirements check page, PDO extension module, PDO MySQL extension module are all green Pass

6. Yii Framework Analysis (a) the start-up process of entrance script index.php

Introduction: 1. The only entry for starting a Web site index.php: $yii =dirname (__file__). /framework/yii.php, $config =dirname (__file__)/protected/config/main.php;//remove the following line while in Production modedefined (Yii_debug) or define (yii_debug,true); Requi

7. A detailed description of PHP's YII framework's operating mechanism and its routing function

Introduction: Operating mechanism overview Every time the YII application starts processing an HTTP request, it makes an approximation of the process. The user submits a request pointing to the portal script web/index.php. The portal script loads the configuration array and creates an application instance to handle the request. The application resolves the requested route through the request application component.

"Related question and answer recommendation":

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.