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

  • The difference between yii1 and yii2
    The difference between yii1 and yii2
    The difference between yii1 and yii2: the difference in controller calls, such as yii1: [index.php?r=userGroup/index&page=1], yii2: [index.php?r=user-group/index&page=1].
    YII 3725 2020-02-20 16:02:00
  • How to execute php script in yii
    How to execute php script in yii
    Methods for executing php scripts in Yii: 1. [yiic.bat Test Index]; 2. [yiic Test Index]; 3. Generate script [.bat] files and execute them regularly.
    YII 2460 2020-02-20 15:52:04
  • How to install the yii1.1 framework
    How to install the yii1.1 framework
    yii1.1 framework installation method: 1. Download the yii1.1 compressed package from the yii Chinese community and extract it to the www root directory; 2. Run the command [yiic webapp ../../testyii]; 3. Visit www/testyii, Check whether the installation is successful.
    YII 2721 2020-02-26 17:16:37
  • Redirect in yii cannot jump normally
    Redirect in yii cannot jump normally
    The solution to the problem that redirect in Yii cannot jump normally is: [$this->redirect(login page address)->send(); $this->redirect(login page address);Yii::$app->response-> send();].
    YII 2927 2020-02-20 15:15:45
  • An error message appears when creating a model in yii
    An error message appears when creating a model in yii
    The solution to the error message when creating a model in Yii is to enable the PDO extensions [extension=php_pdo.dll] and [extension=php_pdo_mysql.dll].
    YII 2289 2020-02-20 15:05:03
  • The writing position of js code in yii framework
    The writing position of js code in yii framework
    The writing position of js code in yii framework: [<?php $this->beginBlock('script'); ?><script>js code</script><?php $this->endBlock(); ?>].
    YII 2674 2020-02-20 14:53:40
  • gii cannot be accessed in yii framework
    gii cannot be accessed in yii framework
    The solution to the problem that gii cannot be accessed in the yii framework is: add ['allowedIPs'=>['*']], such as [$config['modules']['gii']=['class'=>'yii\gii \Module','allowedIPs'=>['*']].
    YII 2199 2020-02-20 14:47:35
  • yii csrf The data you submitted cannot be verified
    yii csrf The data you submitted cannot be verified
    The way to solve the problem that Yii prompts you that the submitted data cannot be verified is: 1. Turn off csrf verification and add [public $enableCsrfValidation = false;] to the controller; 2. Add a hidden field to the form; 3. Use ajax to submit .
    YII 2026 2020-02-26 17:13:24
  • What should I do if composer fails to install yii?
    What should I do if composer fails to install yii?
    Solution to composer failure to install yii: 1. Use composer national image; 2. Delete the default warehouse configuration; 3. Solve bower dependencies; 4. Modify bower configuration and point the alias to @vendor/yidas/yii2-bower-asset/ bower.
    YII 3082 2020-02-26 17:15:11
  • How to execute script files under commands in yii
    How to execute script files under commands in yii
    The method for yii to execute script files under commands is: 1. Create a new controller script file in the commands directory; 2. Then execute the command [php yii user-test/refresh-userinfo].
    YII 3240 2020-02-20 11:29:56
  • Failed to assign values ​​to model attributes in Yii
    Failed to assign values ​​to model attributes in Yii
    The solution to the failure to assign values ​​to the attributes of the model in Yii is: in the rules of the model, just set the attributes of the fields you want to modify to safe, such as [array('field1, field2,field3', 'safe')] .
    YII 3151 2020-02-26 17:14:24
  • yii2 server 500 error
    yii2 server 500 error
    Solution to yii2 server 500 error: 1. First enable [defined('YII_DEBUG') or define('YII_DEBUG', true);]; 2. Then change the permissions of the assets file to the highest permission of 777.
    YII 2443 2020-02-20 10:47:50
  • How to make the primary key automatically increase in Yii
    How to make the primary key automatically increase in Yii
    The method to automatically increase the primary key in Yii: 1. Use the updateAllCounters method and pass in count=>1 to realize the value auto-increment; 2. Use the updateAll method and pass in count+1 to realize the value auto-increment.
    YII 2846 2020-02-26 17:17:21
  • How to install yii with xampp
    How to install yii with xampp
    The method for xampp to install yii is: 1. Download the composer installation package; 2. Download the yii2 archive file and extract it to the web project directory; 3. Install yii2 and modify the php.ini configuration file; 4. Start apache and mysql and test the installation result.
    YII 2883 2020-02-20 10:37:13
  • What to do if yii2 widget reference fails
    What to do if yii2 widget reference fails
    Solution to yii2 widget reference failure: 1. Use composer to install the widget; 2. Manually install the widget. You need to unzip the file to vendor/kartik/select2, and then add widget-related code in autoload and extens.
    YII 1426 2020-02-20 10:09:40

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!