current location:Home > Technical Articles > PHP Framework > YII

  • Where to register yii2 view
    Where to register yii2 view
    View provides a set of methods for rendering purposes. By default, View is configured as an application component in yii\base\Application. You can access this instance via Yii::$app->view.
    YII 2449 2019-12-14 09:47:20
  • yii2 custom error handling
    yii2 custom error handling
    In Yii2 error custom processing, we understand the principle of Yii2 error registration and know that after the error occurs, Yii2 will call the handleException and handleError methods of the yii\web\ErrorHandler class object.
    YII 3411 2019-12-14 09:34:20
  • Which one to use between yii and laravel?
    Which one to use between yii and laravel?
    yii. Because the Yii framework is very malleable, many core modules can be inherited and rewritten, or unused modules can be skipped directly. The Gii tool can quickly generate CURD and model code, and it is really worry-free to write the management backend. Yii2's code comments are very detailed and can be viewed as documentation.
    YII 2028 2019-12-14 09:29:36
  • How to build a configuration environment in the yii framework
    How to build a configuration environment in the yii framework
    The method to build the configuration environment of the yii framework is: 1. First, download the yii framework from the official website; 2. Then configure the environment variables, and open [Computer], [Properties], [Advanced System Settings], [Environment Variables], [System Variables] in order , add the php path to the path variable; 3. Finally, place the yii framework in the root directory.
    YII 2952 2019-12-13 17:24:25
  • The yii framework hides the index.php file
    The yii framework hides the index.php file
    The method for the yii framework to hide the index.php file is: 1. First modify the apache configuration file, enable the [mod_rewrite] module, and then restart apache; 2. Then add the corresponding code to the relevant files in the project; 3. Finally, add the corresponding code to the index Just add the corresponding file in the same directory as the file.
    YII 2461 2019-12-13 17:08:25
  • In yii2.0, it prompts csrf that the data you submitted cannot be verified.
    In yii2.0, it prompts csrf that the data you submitted cannot be verified.
    The solution to the csrf prompt that the data you submitted cannot be verified in the yii2.0 framework is to turn off [csrf] verification. The specific steps are: 1. You can make corresponding settings in the controller file; 2. You can add hidden fields to the form; 3. Use [ajax] to submit.
    YII 3340 2019-12-13 16:50:41
  • How to introduce css files in yii framework
    How to introduce css files in yii framework
    The method to introduce css files in the yii framework is: 1. First create a file directory and create a css file directory in this directory; 2. Then create a php file in the relevant directory; 3. Then configure the environment variables and create the project entry file in Introduce the configured system environment files; 4. Finally, output the environment variables in the style template.
    YII 3165 2019-12-13 16:27:48
  • How to create a project using yii framework
    How to create a project using yii framework
    The method to create a project using the yii framework is: 1. First, you need to download the yii framework; 2. Then configure the environment variables, configure the environment variable value of yiic to the path where yii framework yiic is located, configure the environment variable value of php.exe to php in the server The path where .exe is located; 3. Finally, use the command to create the yii project.
    YII 3079 2019-12-13 16:07:04
  • Why is yii fast?
    Why is yii fast?
    Yii is so fast because it uses lazy loading technology extensively. For example, the class will not be included until it is used for the first time; the object will not be created until the object is accessed for the first time.
    YII 2365 2019-12-11 12:00:00
  • How to define routing in yii framework
    How to define routing in yii framework
    When a YII application starts processing a request, the first thing it does is convert the request URL into a route. The role of routing is to subsequently instantiate corresponding controllers and operations in order to process requests. The entire processing process is called routing.
    YII 3891 2019-12-11 11:47:48
  • How to determine whether to log in using yii
    How to determine whether to log in using yii
    How to determine whether the user is logged in in Yii: In Yii2.0, to determine whether the user is logged in, use the "Yii::$app->user->isGuest;" statement to determine. If the condition is true, it means that the user is not logged in.
    YII 2499 2019-12-09 17:06:51
  • How to install yii2.0
    How to install yii2.0
    First install Composer, then install the Yii framework, unzip and put the file package into the project root directory of the server. Then open the web.config file in the config folder, find cookieValidationKey, add the password and save it.
    YII 2065 2019-12-09 14:42:36
  • How to query data in yii2
    How to query data in yii2
    Query method: Return all data: User::find()->all(); Return a piece of data with primary key id=1: User::findOne($id); Sort query: User::find()->orderBy( 'id DESC')->all(), etc.
    YII 4250 2019-12-09 14:17:25
  • How to create your own project in yii
    How to create your own project in yii
    How to create your own project in yii: Use the "yiic webapp E:\wamp\www\yii\shop" command to specify the project name and project path to be created, and then enter yes in the next prompt to create the project.
    YII 2225 2019-12-09 13:56:53
  • How to write subquery in yii2 framework
    How to write subquery in yii2 framework
    子查询:“$subQuery = Order::find(), where(['user_id' => $userId]), andWhere(['status' => $status]);”.
    YII 5016 2019-12-09 13:52:30

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!