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 Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- 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
- 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
- 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
- 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 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?
- 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
- 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: 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
- 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: 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 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
- 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
- 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
- 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 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