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

  • 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 3490 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 1841 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 2656 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 4710 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 3236 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 2804 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 2702 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 2601 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 2889 2020-01-13 15:55:29
  • What to do if the csv file exported by yii2 is garbled?
    What to do if the csv file exported by yii2 is garbled?
    yii method to avoid exporting CSV files with garbled characters: Use the iconv function to transcode the CSV file when exporting the CSV file. The iconv function can convert a string according to the required character encoding.
    YII 2348 2020-01-13 15:10:34
  • How to modify the default homepage of yii2.0 framework
    How to modify the default homepage of yii2.0 framework
    How to modify the default homepage in the yii2.0 framework: 1. Modify under the configuration file main.php. 2. Add ‘defaultRoute’ => ‘default’ in the return array under the configuration file, and then create the Default controller and Index method.
    YII 3633 2020-01-15 10:50:15
  • yii determines whether post submission
    yii determines whether post submission
    How to determine whether a post submission is made in Yii: In the controller, determine whether the submission is through the post method. Use the "if(Yii::$app->request->isPost)" statement to determine. If the condition is true, it means a post submission.
    YII 2562 2020-01-11 15:58:26
  • How to implement registration in yii2 framework
    How to implement registration in yii2 framework
    The method for realizing registration in the yii2 framework: After submitting the registration information in the yii framework, the rules() function will perform preliminary verification. After all the formats are correct, the data will be transferred to the actionSignup() function, and then the registration information will be loaded in the signup() function.
    YII 2060 2020-01-11 15:30:07
  • How to define error page in yii2
    How to define error page in yii2
    How to define an error page in yii2: first set the error page style in the views/site/error.php file. Then use the "'errorAction'=>'site/error'," statement in the config/main.php file to call it.
    YII 2515 2020-01-11 15:09:55
  • Where is the database configuration information of yii
    Where is the database configuration information of yii
    The yii public database configuration file is in /common/config/main-local.php. If the frontend and backend are different: the frontend is in /frontend/config/main-local.php and the backend is in /backend/config/main-local.php.
    YII 2688 2020-01-11 14:42:07

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