current location:Home > Technical Articles > PHP Framework > YII
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- 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 2278 2020-02-18 15:17:13
-
- 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 2277 2020-02-18 14:56:24
-
- 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 3194 2020-02-18 14:39:07
-
- 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 1828 2020-02-18 11:54:34
-
- 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 2347 2020-02-18 11:46:03
-
- 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 3775 2020-02-18 11:38:09
-
- 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 4498 2020-02-18 11:33:16
-
- 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 2243 2020-02-18 11:21:55
-
- 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 2432 2020-02-18 11:18:50
-
- 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 2506 2020-02-18 11:13:16
-
- 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 2424 2020-02-18 11:02:34
-
- 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 2085 2020-02-18 11:01:24
-
- 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 3436 2020-02-18 10:47:51
-
- How does composer update the yii2 version
- How to update the yii2 version with composer: first make sure the latest Composer resource plug-in is installed; then execute php composer.phar update yiisoft/yii2 to upgrade Yii2.
- YII 4158 2020-02-18 10:20:04
-
- yii2.0 determines ios or Android
- The method for yii2 to determine whether ios or Android is: first create a get_device_type function; then use Yii::$app->request->userAgent within the function to obtain the user browser UA; finally use the strpos function to find the UA characteristic strings of Android and ios. Can.
- YII 2140 2020-02-18 10:04:12