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

  • How to download and install the yii framework
    How to download and install the yii framework
    The method to download and install the yii framework is: 1. First, enter the yii official website to download; 2. Then access the requirements.php in the root directory in the browser to check whether the environment is suitable for using yii; 3. Finally, access it in the browser and install yii Just frame it.
    YII 3058 2020-02-18 15:57:01
  • How to import css files into yii
    How to import css files into yii
    The way to introduce css files in Yii is to use the CClientScript class to introduce the css files of the view, such as [Yii::app()->getClientScript()->registerCssFile("/css/main.css");].
    YII 2673 2020-02-18 15:40:23
  • yii2 failed to upload file
    yii2 failed to upload file
    The solution to the failure of yii2 to upload files is to add a cancellation code, such as [if ($action->id == 'datafile') {$this->enableCsrfValidation = false;].
    YII 2246 2020-02-18 15:17:13
  • yii cannot open gii under linux
    yii cannot open gii under linux
    The solution to the problem that yii cannot open gii under Linux is: just add your own IP in conf/main-local.php, for example ['allowedIPs' => ['127.0.0.1', '::1']] .
    YII 2250 2020-02-18 14:56:24
  • The jq code written in yii does not take effect
    The jq code written in yii does not take effect
    The solution to the problem that the jq code written in Yii does not take effect is to put the js code into [$this->registerJS()] in the view, and ensure that the js code is under the js library, such as [$this->registerJs ('alert(1)');].
    YII 3166 2020-02-18 14:39:07
  • Which is the entry file of yii framework?
    Which is the entry file of yii framework?
    The yii framework entry file is the index.php file in the web directory. This file can set the current running mode and environment of the program, including debugging status, product environment, test environment, and development environment.
    YII 1808 2020-02-18 11:54:34
  • yii verification code is always wrong
    yii verification code is always wrong
    The way to solve the problem that the Yii verification code is always wrong is: do not do separate validation before saving the model, for example [$model = new Test();$model->validate(array('test1','test2')) ;].
    YII 2326 2020-02-18 11:46:03
  • How to use gii in yii
    How to use gii in yii
    How to use gii in yii: first configure the IP or IP segment that requests the use of the gii module; then access http://domain/gii with the browser; finally click the start button in the Model Generator section to enter the generated Model page to start using it.
    YII 3742 2020-02-18 11:38:09
  • yii2 determines that the database field is not empty
    yii2 determines that the database field is not empty
    Methods for yii2 to determine if a database field is not empty: 1. [$query = new Query;]; 2. [$query -> select('ID,City,State')...->andWhere(['not', ['City' => null]])].
    YII 4433 2020-02-18 11:33:16
  • How to get the verification code value in yii
    How to get the verification code value in yii
    How to get the verification code value in yii: Generally, get the verification code value in the controller, such as [$this->createAction('captcha')->getVerifyCode();].
    YII 2193 2020-02-18 11:21:55
  • How to configure pathinfo mode in yii framework
    How to configure pathinfo mode in yii framework
    How to configure the pathinfo mode in the yii framework: first open the config/main.php file and comment out usrManger; then add a file named .htaccess in the application root directory and write the corresponding rules; finally enable the rewrite module of apache , and restart.
    YII 2406 2020-02-18 11:18:50
  • How to load public files in yii
    How to load public files in yii
    Methods for loading public files in yii: 1. Use JS to define public methods to load on the page that needs to be loaded; 2. Use widgets to define widgets to perform loading; 3. Use beginContent to load files directly.
    YII 2473 2020-02-18 11:13:16
  • yii reports an error when running init.bat
    yii reports an error when running init.bat
    Solution to the error when yii runs init.bat: Open init.bat and modify [if "%PHP_COMMAND%" == "" set PHP_COMMAND=D:\xampp\php\php.exe (php.exe actual path)] .
    YII 2405 2020-02-18 11:02:34
  • How to implement login in yii
    How to implement login in yii
    The login implementation method in Yii: first create the shop_admin data table, add adminuser, adminpass and other fields; then create the login page and use ActiveForm to create the login form; finally write the model and controller to query the database.
    YII 2013 2020-02-18 11:01:24
  • How to configure routing in yii framework
    How to configure routing in yii framework
    How to configure routing in the yii framework: 1. Enable the rewrite module in httpd.conf; 2. Add the server configuration file [.htaccess] in the directory; 3. Add urlManager to the framework configuration item \frontend\config\main.php Configuration items.
    YII 3416 2020-02-18 10:47:51

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