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

  • How to connect to the database in yii
    How to connect to the database in yii
    How to connect yii to the database: first establish a connection with the database server; then find the "component" component; then use "yii\db\Connection" to connect to the database, the code is "'db'=>['class'=>'yii\ db\Connection']".
    YII 2671 2020-01-09 10:34:16
  • yii2 404 error handling
    yii2 404 error handling
    Yii2 404 error handling method: first enter the "frontend\config" folder of the yii framework; then open the "main.php" file and modify the controller name and method name; then enter "controllers" to create the controller; finally, in Just create a view on the "V" layer.
    YII 3795 2020-01-09 10:28:07
  • How to install git clone yii
    How to install git clone yii
    How to install yii through git cloning: first open the github address of the yii framework; then clone to a web-accessible directory and enter the directory; then use the command "composer global" to install the plug-in; finally cd to the framework directory and execute the command "create-project" "That's it.
    YII 2999 2020-01-09 10:22:11
  • How to deploy yii
    How to deploy yii
    How to deploy a yii project: First, unzip the downloaded "yii" package into the built environment; then copy the core file "framework" to the project you want to build; then configure the environment variables to complete the "yii" project deploy.
    YII 2343 2020-01-15 10:47:05
  • How to reference templates in yii
    How to reference templates in yii
    How to reference the template in Yii: first open the "view" file; then add the reference code as "$this->render('@app/views/layouts/paginator.php',['pagination'=>$pagination]);" That’s it.
    YII 2142 2020-01-09 10:09:03
  • How to query statistics in yii2
    How to query statistics in yii2
    In yii2, you can use native SQL to query statistics. The sql statement is "SELECT count(*)as total,insertion_time FROM `tre_information_hints`", where "tota" is the number of fields storing statistics.
    YII 4178 2020-01-09 10:05:33
  • How to handle errors in Yii framework
    How to handle errors in Yii framework
    The Yii framework has a built-in error handler, which can be used for error handling. All non-fatal PHP errors (such as warnings, prompts) will be converted into obtainable exceptions; exceptions and fatal PHP errors will be displayed during debugging. Mode displays detailed function call stacks and source code line numbers.
    YII 2613 2020-01-08 15:24:17
  • What are the extensions of yii framework
    What are the extensions of yii framework
    Extensions are software packages specifically designed to be ready for use in Yii applications and can be redistributed. The yiisoft/yii2-debug extension adds a convenient toolbar for debugging at the bottom of each page of your application, helping you to simply capture the page generation situation.
    YII 2248 2020-01-02 15:06:56
  • How to connect to the database in yii
    How to connect to the database in yii
    Yii uses PDO (PHP Date Object) to connect to various databases. Yii uses yii\db\Connection to handle database connections. Find the components in the configuration file and configure the database information to connect.
    YII 3647 2019-12-31 16:16:28
  • Where is the yii configuration file?
    Where is the yii configuration file?
    Each Yii environment is a set of configuration files. The Yii configuration files are in the /path/to/digpage.com/environments directory, the config directory in the frontend directory and the backend directory.
    YII 2992 2019-12-31 15:58:47
  • Where is the yii framework entry file?
    Where is the yii framework entry file?
    The entry file of the Yii framework is in the web directory, and the index.php file in the web directory is the entry file. The index.php file is the startup entry file for the entire web project based on the Yii framework.
    YII 3646 2019-12-31 15:41:52
  • How to log out of yii
    How to log out of yii
    How to log out of Yii: directly use the "Yii::$app->user->logout();return this->redirect(['controller/method name']);" statement to log out.
    YII 2677 2019-12-31 15:07:45
  • How to log in to yii
    How to log in to yii
    How to log in in Yii: 1. Write two Model classes: LoginForm and User, one is used to receive data submitted by users, and the other is used to obtain data from the database. 2. Write a controller for data submission, and fill the data submitted by the user into the corresponding model (Model).
    YII 2116 2019-12-31 14:56:20
  • yii What do you read in English?
    yii What do you read in English?
    Yii (pronounced Yee or [ji:], which should be the pronunciation of "yi"), represents easy, efficient and extensible. Yii is a high-performance PHP5 web application development framework for developing large-scale web applications.
    YII 4636 2019-12-30 14:36:21
  • The difference between yii1.0 and 2.0
    The difference between yii1.0 and 2.0
    Yii 2.0 requires PHP 5.4 or higher, which is a huge improvement over the PHP 5.2 required by Yii 1.0. The most obvious change in Yii 2.0 is the use of namespaces. Almost every core class introduces a namespace, such as yii\web\Request.
    YII 2468 2019-12-30 14:11:45

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