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:
-
- yii determines whether to submit in get mode
- Yii2 provides several functions to determine the submission method, in the Yii::$app component. Use "Yii::$app->request->isGet" to determine whether it is submitted in get mode. If it is submitted in get mode, 1 will be returned.
- YII 2382 2019-12-09 13:44:35
-
- How to print sql statements in yii framework
- The yii framework can use "Model::find()->createCommand()->getRawSql();" or "$model->find()->createCommand()->getRawSql();" to print sql statements.
- YII 2749 2019-12-09 13:40:33
-
- How to sort yii2.0 tables
- Yii2.0 table sorting can be implemented using the Sort class. Using yii\data\Sort, you must first declare what attributes can be sorted, then obtain the currently set sorting information from attributeOrders or orders, and then use them to customize data queries.
- YII 2394 2019-12-09 13:37:13
-
- How to call extension class in php yii
- Introduce and define in the config.php file: 'components'=>array('xyz'=>array('class'=>'ext.xyz.XyzClass', 'property'=>'value',).
- YII 2830 2019-12-09 13:25:05
-
- How to generate verification code in yii2
- First add the verification code in the controller, then call the verification code through $code = $c->getVerifyCode();, and then write <img src=this action access URL + random string to prevent caching.
- YII 2971 2019-12-09 13:05:32
-
- Is gii based on the yii framework?
- Gii is a module in the Yii framework. In my opinion, Gii is a rapid creator. It is a good tool for rapid development. Gii is implemented as a module, which must be used in an existing Yii application.
- YII 2449 2019-12-09 11:49:20
-
- What cache is used for yii2 user login?
- The yii2 user logs in using the DataCache cache. The cache file will be found in a folder called te in the runtime\cache directory, where test.bin is the cache file of the data. Commonly used methods: set(), get(), add(), multiGet(), etc.
- YII 2211 2019-12-09 11:39:05
-
- How to format data in yii2
- yii\i18n\Formatter is a formatting assistant, which is very helpful for us to achieve user-friendly display on the front end. Common properties: $dateFormat, $datetimeFormat, $locale, $defaultTimeZone.
- YII 3091 2019-12-09 11:25:27
-
- What does component mean in yii2?
- Component is the main component of YII framework application (application). It is an instance or subclass of [yii\base\Component]. Components have three important characteristics: properties, events, and behaviors.
- YII 3173 2019-12-09 11:15:49
-
- What is the difference between yii2 batch and each
- When we need to read all or a large batch of data at once, we can use the batch and each methods to reduce memory usage. The batch method takes less time than the each method, and the two methods are similar in terms of memory reduction.
- YII 3964 2019-12-09 10:58:58
-
- Can yii execute sql?
- Yii can execute SQL by first creating a CDbCommand command object, and then using the execute() method, query() method or derived queryXXX() method in the CDbCommand object to execute the SQL statement.
- YII 1876 2019-12-09 10:42:34
-
- How to use redis in yii2 project
- If you want to use redis key-value storage well in Yii2, a PHP framework, first use composer to install the yii2-redis library, then configure the Connection class in the configuration file of your application, and then add the redis project to the component. .
- YII 3299 2019-12-09 10:28:22
-
- How to open gii in yii framework
- The gii module can be enabled by configuring the yii\base\Application::modules property. First configure the config/web.php file, then open the web/index.php entry script and set "YII_ENV_DEV" to true.
- YII 2578 2019-12-09 09:53:55
-
- What to do if a 500 error occurs in yii2.0
- First open web/index.php defined('YII_DEBUG') or define('YII_DEBUG', true); and change this to true. The asserts folder and its files have insufficient permissions, making them inaccessible. Just change them to 777.
- YII 2889 2019-12-09 09:33:28
-
- How to customize yii components
- First create the components folder under common, then create a custom component in the newly created components folder, then open common/config/main.php (main-local.php) and add your component in the configuration file.
- YII 2452 2019-12-07 17:56:28