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

  • How to set language switching in yii2
    How to set language switching in yii2
    The method for setting language switching in yii2 is as follows: first configure the components; then create a messages directory in the web directory at the same level, which stores the language configuration files; then initialize each controller; and finally write the controller method to implement language switching.
    YII 2684 2020-07-20 10:15:39
  • What should I do if paging in yii1.1 does not work?
    What should I do if paging in yii1.1 does not work?
    The reason why yii1.1 paging does not work is because the "layout.php" file is missing, causing all js and css to fail to load. The solution is to restore and add the "layout.php" file and load js and css normally.
    YII 2541 2020-07-20 10:09:13
  • What should I do if the yii1 verification code does not display?
    What should I do if the yii1 verification code does not display?
    The yii1 verification code is not displayed because the accessRule blocks the verification code. The solution is to add the action of the verification code and then give it visible permissions to everyone.
    YII 2060 2020-07-20 10:04:10
  • What should I do if the yii2 project Action reports a 403 error?
    What should I do if the yii2 project Action reports a 403 error?
    The solution to the 403 error reported by the yii2 project: first open the corresponding code file; then modify the writing method in the ACF verification; finally, separate the words with "-" symbols to solve the 403 error.
    YII 3053 2020-07-20 10:00:04
  • How to prevent xss attacks in yii2
    How to prevent xss attacks in yii2
    The method of yii2 to prevent XSS attacks: first define an "actionClean" method to prevent XSS attacks; then implement the removal of special characters in the method body; and finally call this method.
    YII 3732 2020-07-20 09:55:48
  • How to modify the yii2 logo
    How to modify the yii2 logo
    How to modify the yii2 logo: first find and open the "/layouts/main.php" file; then add the code as "Html::img('/images/logo.png'...)"; finally save the modification.
    YII 2507 2020-07-20 09:51:09
  • How to query the database in yii1.1
    How to query the database in yii1.1
    yii1.1 method of querying the database: first specify the database to be used through the statement "$dbh = Yii::app()->db;"; then use the "$cmd->queryAll();" method to query and return the results All rows of .
    YII 2880 2020-07-20 09:47:14
  • How to set error message language in yii2
    How to set error message language in yii2
    How to set the error message language in yii2: first find and open the configuration file; then write the statement as "'language'=>'zh-CN','timeZone'=>'Asia/Shanghai',"; finally save the changes. .
    YII 2380 2020-07-20 09:44:16
  • How to configure the yii table prefix
    How to configure the yii table prefix
    The configuration method of Yii table prefix: first modify the db configuration in the component; then modify the tablename attribute in the corresponding model, and modify the statement such as "public function tableName(){return '{{%user}}';}".
    YII 2142 2020-07-20 09:41:02
  • How to use the yii framework after downloading it
    How to use the yii framework after downloading it
    How to use the yii framework after downloading: first install the yii framework; then configure the web server; then start Apache or Nginx, PHP, MySql; finally visit "hostname.com" to use the YII framework.
    YII 2476 2020-07-20 09:37:59
  • How to open gii in yii2
    How to open gii in yii2
    How to open gii in yii2: first check the configuration code in the "config/web.php" file; then open the "web/index.php" file; and finally set "YII_ENV_DEV" to "true".
    YII 2753 2020-07-20 09:32:48
  • What to do if yii2 save fails?
    What to do if yii2 save fails?
    Solutions to unsuccessful yii2 save: 1. Use the "$model->errors" method; 2. Check whether the return value of the overridden AR life cycle method is incorrect, with statements such as "yii\db\ActiveRecord::afterValidate()" .
    YII 3529 2020-07-20 09:17:24
  • How to add id to yii button
    How to add id to yii button
    How to add id to yii: first determine whether the CHtml class is used; then directly write the attributes and the values ​​corresponding to the attributes in the array behind. The statement is "CHtml::button("test",array('id '=>'Button id'))".
    YII 2523 2020-07-20 09:12:22
  • Where does yii add sql logging configuration information?
    Where does yii add sql logging configuration information?
    How to add sql log information to yii: first find and open the "config/web.php" file; then add the configuration as "'categories'=>['yii\db\*','app\models\*']," ;Finally test it.
    YII 3681 2020-07-20 09:08:26
  • what does yii stand for
    what does yii stand for
    yii stands for "Yii Framework", which means the yii framework, which is a high-performance PHP framework based on components for developing large-scale web applications. Yii is written in strict OOP and has complete library references and comprehensive tutorials. Yii provides It provides the functions required for today's Web2.0 application development.
    YII 3875 2020-07-20 09:04:18

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!