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

  • Create an online course website using the Yii framework
    Create an online course website using the Yii framework
    With the development of the Internet, online learning has become a common education method. In order to meet people's learning needs, many online course websites have emerged. This article will introduce the steps and methods to create an online course website using the Yii framework. 1. Introduction to Yii Framework Yii is an excellent PHP framework that is widely used to build web applications. Yii has rich features, including MVC architecture, activity recording, Gii code generator, and more. 2. Create a basic Yii application before starting to build the online course website
    YII 896 2023-06-21 08:16:39
  • Form validation in Yii framework: ensuring the input data is correct
    Form validation in Yii framework: ensuring the input data is correct
    The Yii framework is an efficient and flexible web application development framework. In the Yii framework, form validation is an important part of ensuring that the data entered by the user is correct. This article will introduce form validation and related technologies in the Yii framework. 1. Overview of form validation Form validation refers to verifying the input data before submitting the data to ensure that the data conforms to the specified format and requirements. In the Yii framework, form validation can be implemented through the model. The model is the data transfer carrier between the controller and the view. The model defines the data that needs to be used in the form.
    YII 1663 2023-06-21 08:16:09
  • How to remove jquery in yii2
    How to remove jquery in yii2
    How to remove jquery from yii2: 1. Edit the AppAsset.php file and comment out the "yii\web\YiiAsset" value in the variable $depends; 2. Edit the main.php file and add the configuration "'yii" under the field "components" \web\JqueryAsset' => ['js' => [],'sourcePath' => null,]," to remove the jquery script.
    YII 1703 2023-02-17 09:55:59
  • A few selected CTF exercises will help you learn the yii2 framework!
    A few selected CTF exercises will help you learn the yii2 framework!
    This article will introduce you to the yii2 framework, share a few CTF exercises, and use them to learn the yii2 framework. I hope it will be helpful to everyone.
    YII 2985 2022-10-08 17:08:11
  • How to hide .php suffix in yii url
    How to hide .php suffix in yii url
    Methods to hide the .php suffix in yii url: 1. Add the .htaccess file; 2. Add "'urlManager' => [...]" to the components array in config/web.php; 3. Modify apache.
    YII 2457 2022-01-04 09:24:59
  • What is the difference between yii and laravel
    What is the difference between yii and laravel
    Differences: 1. Laravel does not provide any constructs to verify models under different circumstances, while Yii can assign models based on request parameters. 2. To perform validation on the client side, Laravel does not provide default support; Yii provides very good client-side validation for forms. 3. Laravel has very powerful documentation, but Yii does not.
    YII 4283 2023-01-13 00:40:36
  • Examples of advanced templates based on PHP Yii2 framework
    Examples of advanced templates based on PHP Yii2 framework
    Yii2 officially provides free advanced template framework example code, but its functions are relatively simple. An open source mall project has been developed based on the yii2 advanced template. It is free and open source and can be used for secondary development or learning. Let’s see if everyone can use it.
    YII 2928 2021-08-02 13:42:16
  • How to hide index.php in yii 1.0
    How to hide index.php in yii 1.0
    How to hide index.php in yii1.0: first open the "httpd.conf" file; then open "mod_rewrite.so"; then change the "AllowOverride" of the corresponding directory to ALL; finally create a new htaccess in the directory of the same level as index. Can.
    YII 6304 2023-01-13 00:40:36
  • Specific steps to generate QR code using yii2
    Specific steps to generate QR code using yii2
    yii framework: After downloading the class library from the official website, make sure that the current PHP environment supports GD2, and then we only need to use phpqrcode.php to generate the QR code.
    YII 3096 2021-03-15 10:22:29
  • How to use aliases in yii2 framework
    How to use aliases in yii2 framework
    In the actual development process, we will use some absolute paths. But since absolute paths are very long, in order to use paths conveniently, we can give each path a name in Yii, and this name is an alias.
    YII 3143 2021-03-08 16:53:21
  • Send email using yii 2 framework
    Send email using yii 2 framework
    Specific steps: 1. Open the mailbox configuration; 2. Add the SiteController.php controller file; 3. View file; 4. Visit http://127.0.0.1/base/web/index.php?r=site/send-mail .
    YII 3257 2021-03-01 10:31:03
  • Three ways to use widgets in Yii views
    Three ways to use widgets in Yii views
    Yii framework: This article summarizes three ways to use widgets in Yii views, hoping to help everyone.
    YII 2825 2021-02-19 10:07:46
  • How to use yii2 to send files using qq mailbox
    How to use yii2 to send files using qq mailbox
    First, enable the POP3/SMTP service in the settings of qq mailbox; add the mailbox component in the Yii2 configuration file (common/config/main.php components); call the mailbox interface to send mail.
    YII 3554 2021-01-25 10:18:54
  • Introduction to the use of gii tools in the yii framework
    Introduction to the use of gii tools in the yii framework
    Gii is an extension that automatically generates code through GII and leaves some common codes to the program to generate, which greatly reduces the developer's time cost.
    YII 2633 2021-01-11 10:05:38
  • How to convert yii objects into arrays or directly output to json format
    How to convert yii objects into arrays or directly output to json format
    Yii framework: This article introduces Yii's method of converting objects into arrays or directly outputting them into json format. It has certain reference value and I hope it can help you.
    YII 3585 2022-10-08 17:08:27

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