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:
-
- What does yii2 log do?
- yii2 Log to easily log various types of messages, filter them, and collect them to different targets such as files, databases, emails. Use the Yii logging framework: record log messages in various places in your code; filter and export log messages by configuring log targets in the application configuration
- YII 2040 2019-12-30 11:54:35
-
- How to check cookies in yii2
- Use the $cookies = Yii::$app->request->cookies; command (note that this is a request) to obtain cookies; then use $cookies->get('user', 'defaultName'); to view the value of cookies.
- YII 2502 2019-12-30 11:49:17
-
- Where to set the time zone in yii2
- In the yii framework, you can directly set the time zone in /protected/config/main.php (Supplement: The same is true for Yii2, add it in common/config/main.php).
- YII 3885 2019-12-30 11:40:50
-
- How to open session in yii2
- To open a session in yii2, you can use Yii::$app->session;. Use $session->set(); to set the session name and session value.
- YII 3537 2019-12-30 11:29:46
-
- How to install plug-ins for yii
- First install the composer plug-in for yii, add the corresponding plug-in in the project root directory: vendor -> composer.json; find the corresponding project in the shell: If it is an ABC project, enter the ABC project and execute: composer update
- YII 2102 2019-12-30 11:10:34
-
- How to obtain ip in yii2.0
- YII obtain IP address command: Yii::app()->request->userHostAddress;. Get the current domain name command: echo Yii::app()->request->hostInfo;.
- YII 3993 2019-12-30 11:03:11
-
- How to use apidoc to generate technical documentation in yii2
- Yii2 must first install the apidoc extension. If the extension is not installed, first install phpdocumentor/reflection-docblock, and then install the following extensions cebe/markdown and yiisoft/yii2-apidoc to generate technical documents.
- YII 3108 2019-12-30 10:53:22
-
- Where is yii2 strong?
- Yii2 is easy to install, uses modern technology, is highly scalable, encourages testing, simplifies security, shortens development time, and is easily tuned for optimal performance. Yii is a pure OOP framework that takes full advantage of some of PHP's more advanced features, including delayed static binding, SPL classes and interfaces, and anonymous functions.
- YII 2457 2019-12-30 10:34:44
-
- How to prevent repeated form submission in yii2
- Yii2 uses csrf to prevent repeated submission of forms. By default, Yii2's csrf verification uses cookies to save token verification. To prevent repeated submission of forms, you must first change this method to session.
- YII 3283 2019-12-30 10:22:06
-
- How to configure yii2
- Configuration is widely used to create new objects or initialize existing objects in Yii. The configuration usually contains the class name of the object to be created and a set of initial values of the properties that will be assigned to the object. The properties here are Yii2 properties. You can also bind event handlers to events on an object, or attach behaviors to the object.
- YII 2521 2019-12-30 10:13:18
-
- How to use gii in yii framework
- First, add 'allowedIPs' => ['*'] to main-local.php in the config file of the Yii framework. Enter index.php?r=gii in the address bar. The gii login interface will open. Enter the password set in the previous step.
- YII 2062 2019-12-30 10:05:56
-
- How to implement rbac in yii2
- Yii2 implements a general hierarchical RBAC and follows the NIST RBAC model. Yii2's permission management implementation supports two carriers: file and db. The core of the db-based implementation is four tables: a table for storing roles or permissions, a table for upper and lower levels of permissions and roles, an allocation table for users and permissions (roles), Rule table
- YII 2163 2019-12-30 09:42:08
-
- How to create applications in yii framework
- The yii framework uses the powerful yiic tool to create applications. Run yiic on the command line, such as: % YiiRoot/framework/yiic webapp WebRoot/testdrive.
- YII 2408 2019-12-30 09:31:22
-
- How to use module in yii2
- Modules are organized into a directory called base path. In this directory, there are subdirectories such as controllers, models, and views, which correspond to controllers, models, views, and other codes respectively, very similar to applications.
- YII 2350 2019-12-30 09:17:22
-
- What projects is the yii framework suitable for?
- Yii is a general web programming framework that can be used to develop various web applications built with PHP. Because of its component-based framework structure and well-designed caching support, it is particularly suitable for developing large-scale applications, such as portals, communities, content management systems (CMS), e-commerce projects, etc.
- YII 2196 2019-12-27 16:25:04