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

  • What are the sorting methods in yii
    What are the sorting methods in yii
    Yii uses the yii\data\Sort object to represent information about the sorting scheme. Sorting methods are: attributeOrders: gives the sorting direction currently set for each attribute. orders: Gives the sorting direction in terms of low-level columns.
    YII 3444 2019-12-17 16:18:54
  • How to transfer value when yii page jumps
    How to transfer value when yii page jumps
    Methods for passing values ​​in yii page jump: 1. Page jump in the same Controller: $this->render('view page',array('parameter'=>'value'));. 2. Use the $this->redirect method to pass values ​​when jumping to pages in different Controllers.
    YII 2315 2019-12-17 15:40:03
  • How to reference external files in Yii
    How to reference external files in Yii
    Methods to reference external files in Yii: 1. Introduce the external file path in Yii's ../config/main.php. 2. Use the "Yii::app()->basePath" method in the Yii code to reference external files.
    YII 2688 2019-12-17 15:32:17
  • How to execute cmd command on e disk yii
    How to execute cmd command on e disk yii
    How to execute the cmd command on the e-disk yii: 1. Create a new controller script file in the "commands" directory. 2. Use the command "php yii project location/yii+controller name/method name" in cmd.
    YII 3670 2019-12-17 14:41:44
  • How to import public files into Yii
    How to import public files into Yii
    How to load public files: 1. Use JS to define public methods and load them on the page that needs to be loaded. 2. Use widgets and define widgets to perform loading. 3. Use beginContent to load the file directly.
    YII 2122 2019-12-17 14:26:28
  • How to check server 500 error in yii2
    How to check server 500 error in yii2
    How to check the server 500 error in yii2: 1. Change defined('YII_DEBUG') in index.php to define('YII_DEBUG',true). 2. Change the permissions of the assets folder to 777.
    YII 3448 2019-12-17 14:10:03
  • How to get errors in yii model
    How to get errors in yii model
    In Yii, use the "$errors=$model->getErrors();" statement to obtain all error information. getErrors(): returns errors for all attributes or a single attribute, that is, returns all errors that occurred during verification.
    YII 2855 2019-12-17 14:03:03
  • yii2 post failed (400 error) solution
    yii2 post failed (400 error) solution
    Solution to post400 error in yii2: 1. Turn off Csrf ($this->enableCsrfValidation=false;). 2. Add hidden fields to the form. 3. Add the _csrf field to AJAX.
    YII 2989 2019-12-17 13:56:25
  • How to print sql in yii
    How to print sql in yii
    If you want to print Sql, you can replace the command you want to execute, such as queryAll(), queryOne(), execute(), with getRawSql() to print the SQL statement.
    YII 3161 2019-12-17 13:48:37
  • Why doesn't Yii have a template engine?
    Why doesn't Yii have a template engine?
    YII does not have a template engine because PHP itself is the best template engine. If Yii has a template engine, the template engine will eventually have to be compiled into PHP during debugging.
    YII 2154 2019-12-17 13:39:21
  • What are the differences between yii and tp?
    What are the differences between yii and tp?
    The difference between yii and tp: 1. Configuration: yii has multiple configurations and is more flexible. There is only one type of tp. 2. Page controls: Yii has a variety of page controls, but TP does not have page controls. 3. Get and post methods: There are many methods in tp, but only one in yii. 4. TP’s ORM is character, and arrays are also available. YII can only be arrays.
    YII 3952 2019-12-16 14:32:44
  • How to register in yii
    How to register in yii
    How to implement registration in yii: You can see the registration page in the advanced template. After filling in the registration information, the rules() function will perform preliminary verification. After all formats are correct, the data is input into the actionSignup() function.
    YII 2089 2019-12-16 10:22:16
  • Where are yii error messages recorded?
    Where are yii error messages recorded?
    yii error information is recorded in the database. How to use the database to record error information: We can set the database configuration in the configuration file main.php, and then use the command to create a data table to save the error information.
    YII 3114 2019-12-14 11:36:15
  • How to modify the error page style in yii2
    How to modify the error page style in yii2
    The default error action of yii2 is handled by the error action under the site controller. The corresponding error view page is the error.php page. You can modify the layout file of the error.php page by modifying the actions() method.
    YII 2849 2019-12-14 11:22:02
  • Where is the yii log file?
    Where is the yii log file?
    File path configuration command Yii::$app->log->targets[0]->logFile = Yii::getAlias('@runtime').DIRECTORY_SEPARATOR.'logs'.DIRECTORY_SEPAR.‘……’
    YII 4424 2019-12-14 11:08:01

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