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

  • How to connect to the database using php yii framework
    How to connect to the database using php yii framework
    How to connect the php yii framework to the database: first configure the database connection component, by adding the db component to the application configuration; then open web.php to configure the database information; finally use "$conn = \Yii::$app->db;" to connect Just go to the database.
    YII 2859 2019-11-04 14:15:58
  • The difference between yii and laravel
    The difference between yii and laravel
    The difference between yii and laravel: Yii is slightly better in code readability, laravel is a bit over-designed, laravel's facade mode makes reading the source code under the vendor a bit confusing, and many classes cannot be jumped to read in the IDE without the help of third-party components. Source code.
    YII 4520 2019-11-04 14:07:10
  • what is yii gii
    what is yii gii
    Gii is an extension of Yii. It automatically generates code through Gii and leaves some common codes to the program to generate, which greatly reduces the developer's time cost. However, the generated code is the template that comes with Yii. The code generated every time is not what we want, so we have to make corresponding adjustments every time.
    YII 2983 2019-11-04 13:54:19
  • where are yii components
    where are yii components
    yii components (Components) In yii\base\Component, components are the main cornerstone of Yii applications and are instances of the yii\base\Component class or its subclasses.
    YII 1995 2019-11-04 13:43:39
  • What does yii assets mean?
    What does yii assets mean?
    The yii assets folder generally stores some style files (css), script files (js), picture files (images), etc. in the front and backend, so it can be used in conjunction with Yii::app()->request->baseUrl (get project name).
    YII 4493 2019-11-04 13:31:55
  • What does Yii::app() mean?
    What does Yii::app() mean?
    Yii::app() is an instantiated object that we can directly operate in the current framework. We can understand this object as the first object requesting the application.
    YII 3493 2019-11-04 13:20:21
  • What is the difference between yii1.1 and yii2.0
    What is the difference between yii1.1 and yii2.0
    Differences: 1. Yii2.0 fully embraces Composer, while yii1.1 does not; 2. Almost every core class in Yii2.0 introduces namespaces, and the class name prefix "C" in version 1.1 is no longer used; 3. Yii2. 0 splits the CComponent class in 1.1 into two classes.
    YII 3007 2020-10-21 11:01:18
  • Detailed explanation of addition, deletion, modification and query of Yii2.0 database operations
    Detailed explanation of addition, deletion, modification and query of Yii2.0 database operations
    1. Simple query: one(): Returns the first record of the query based on the query results. all(): Returns all records based on query results. count(): Returns the number of records. sum(): Returns the total number of the specified column. average(): Returns the average of the specified column.
    YII 2792 2019-11-01 18:12:49
  • The Yii3.0 era is coming, why not take a sneak peek?
    The Yii3.0 era is coming, why not take a sneak peek?
    Just like when the Yii2.0 era came and Yii1.0 will eventually fade away, the launch of Yii3.0 version is bound to cause waves in the Yii framework. So what changes have been made in Yii3.0 compared to Yii2.0? The Yii3.0 framework is a skeleton application best suited for quick project creation.
    YII 5096 2019-11-01 18:13:21
  • Create microservices using Yii2.0
    Create microservices using Yii2.0
    Breaking a large single application and service into several or even dozens of supporting microservices can scale individual components rather than the entire application stack to meet service level agreements. The traditional development model is to put all functions in one package, with basically no dependencies. This has the advantage of simple development and centralized management.
    YII 3931 2019-11-01 18:13:56
  • Yii2 API interface output unified Json and jsonp format method
    Yii2 API interface output unified Json and jsonp format method
    If you are making an API, how can you enable others to have a unified standard json or jsonp format when they call your interface? However, everyone's agreement on the format and content of the json response is different, so we must do it before the data is sent out. Do some processing.
    YII 2616 2019-11-01 18:01:31
  • Get started using the yii framework
    Get started using the yii framework
    Yii is a high-performance PHP framework suitable for developing WEB 2.0 applications. You can check the features of Yii on the Yii Chinese official website (see foreign websites as well). The installation of Yii is very simple. The official provides direct download. After downloading, you can use it as long as you have a local PHP environment.
    YII 2447 2019-11-01 18:01:19

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