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 query data in yii2
- Query method: Return all data: User::find()->all(); Return a piece of data with primary key id=1: User::findOne($id); Sort query: User::find()->orderBy( 'id DESC')->all(), etc.
- YII 4452 2019-12-09 14:17:25
-
- How to create your own project in yii
- How to create your own project in yii: Use the "yiic webapp E:\wamp\www\yii\shop" command to specify the project name and project path to be created, and then enter yes in the next prompt to create the project.
- YII 2361 2019-12-09 13:56:53
-
- How to write subquery in yii2 framework
- 子查询:“$subQuery = Order::find(), where(['user_id' => $userId]), andWhere(['status' => $status]);”.
- YII 5249 2019-12-09 13:52:30
-
- 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 2467 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 2848 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 2478 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 2912 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 3076 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 2538 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 2318 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 3183 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 3282 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 4082 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 2124 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 3399 2019-12-09 10:28:22