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

  • How to enable error prompts in yii
    How to enable error prompts in yii
    How to enable error prompts in yii: first open the "index-test.php" file; then add the code "error_reporting(E_ALL & ~E_NOTICE);"; then open the "main.php" file; and finally modify the code to "log=>array "That's it.
    YII 4104 2020-02-01 14:42:25
  • How to obtain sql statement in yii2?
    How to obtain sql statement in yii2?
    To obtain sql statements in yii2, you can use the getRawSql() method. After writing the query statement, call the $query->createCommand()->getRawSql() method.
    YII 6151 2020-02-05 17:56:14
  • Detailed explanation of yii1.1 installation steps
    Detailed explanation of yii1.1 installation steps
    yii1.1 installation steps: First download the yii1.1 framework from "yiiframework.com"; then extract the yii compressed package to a web-accessible directory; finally enter "/to/yii/requirements/index. php" and access it.
    YII 3141 2020-02-01 14:41:58
  • How to make a pop-up window in Yii
    How to make a pop-up window in Yii
    How to make a pop-up window in Yii: first create the "list.php" template; then add the code as "echo $this->render('remarks',['model'=>$remarkModel]);"; then create a template pop-up window file, the code is "use yii\help".
    YII 2707 2020-02-01 14:41:37
  • What to do if a 502 error occurs when deploying a yii project
    What to do if a 502 error occurs when deploying a yii project
    The yii 502 error occurs because the FastCGI server listening port specified by the nginx virtual host is wrong, resulting in nginx not getting a response from the FastCGI server; therefore, when the browser makes a request, nginx returns a 502 status code to the browser; the solution is to modify Just enter the correct port number.
    YII 3037 2020-02-01 14:40:48
  • How to deploy yii framework project
    How to deploy yii framework project
    How to deploy the yii framework project: first place the downloaded yii framework file in the php environment directory; then press the [Windows+R] key combination to open the CMD command form; then enter the "yiic" directory and customize the project path and Just name it.
    YII 2846 2020-02-01 14:40:26
  • How to write logs in Yii framework?
    How to write logs in Yii framework?
    How to write logs in the Yii framework: first modify the configuration file, configure classes, levels, and logVars in the targets of the log; then write logs through the Yii::error(message) method in the program.
    YII 3365 2020-02-05 17:59:29
  • How to write a yii framework form?
    How to write a yii framework form?
    How to write a yii framework form: first use ActiveForm::begin() to mark the start of the form and create a form instance; then use the field($model,'body') method to create an ActiveField object; finally use textarea() and other methods to create the form element.
    YII 1733 2020-02-05 17:59:14
  • How to install the yii2.0 program?
    How to install the yii2.0 program?
    How to install the yii2.0 program: first download and install the composer program; then use the composer self-update command to update composer to the latest version; finally use the composer create-project command to install the yii2.0 program template.
    YII 2499 2020-02-05 17:59:02
  • What is the minimum version of php for yii2?
    What is the minimum version of php for yii2?
    yii2 requires PHP5.4 or higher, which means that the minimum PHP version is php5.4; this version has many improvements compared to PHP 5.2 required by Yii 1.1; yii2 inherits the simplicity, speed, and high-end of yii Scalability.
    YII 4494 2020-02-01 14:40:03
  • How to install yii2-adminlte
    How to install yii2-adminlte
    How to install "yii2-adminlte": first enter cmd and switch to the "advanced" directory; then enter the code "composer require dmstr/yii2-adminlte-asset "2.*""; then configure the "main" file.
    YII 3076 2020-02-01 14:38:41
  • Where is the directory of yii in the php yii framework?
    Where is the directory of yii in the php yii framework?
    The directory of yii in the php yii framework is located under the "vendor/yiisotf/yii2" folder, where the file "behaviors" represents behavior, "caching" represents caching, "captcha" represents verification code, "console" represents console, etc.
    YII 2687 2020-01-15 09:07:05
  • The operating mechanism of the yii framework
    The operating mechanism of the yii framework
    The user submits a request to the entry script web/index.php; the entry script loads the configuration array and creates an application instance to handle the request; the application parses the requested route through the request application component; the application creates a controller ( Controller) instance specifically handles the request.
    YII 2588 2020-01-14 16:08:16
  • What to do if yii2 installation error occurs
    What to do if yii2 installation error occurs
    Solution to the yii2 installation error: First install the "mbstring" extension module through the command "apt-get install php7.0-mbstring"; then use the command "apt-get install php7.0-xml" to install the xml extension.
    YII 2497 2020-01-14 11:48:07
  • Where is the yii database configuration?
    Where is the yii database configuration?
    yii configures the database information in the common->config->main-local.php file. Directly open the main-local.php file to configure the information for connecting to the database.
    YII 2540 2020-01-13 15:55:29

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