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:
-
- What does yii application component mean?
- Yii application components are any objects and can be configured with the yii\base\Application::$components attribute in the application body configuration. Please be careful to register too many application components. Application components are like global variables. Using too many may make testing and maintenance more difficult.
- YII 2952 2019-11-06 09:17:12
-
- Where is the yii add module?
- First create a new modules directory in the root directory, and then add the module directory below this directory. Assuming that we need to add a user module here, we can name the directory user, and then add three directories, models, views, and controllers, under the user directory.
- YII 2999 2019-11-06 09:04:03
-
- What does yii mean?
- Yii is a component-based high-performance PHP framework for developing large-scale web applications; a simple command line tool yiic can quickly create a web application code framework, and developers can add services based on the generated code framework. logic to quickly complete application development.
- YII 18840 2020-10-21 11:05:29
-
- The difference between tp and yii
- The difference between the tp framework and the yii framework: 1. The yii framework has multiple configuration files, while the tp framework has only one; 2. The yii framework uses many page controls, but the tp framework has never used them; 3. The ORM of the tp framework can be characters, arrays, Yii framework can only be arrays.
- YII 12779 2019-11-05 17:52:48
-
- How to write unit tests in Yii
- Each test case extends the Codeception\Test\Unit class, which is the standard Codeception format for unit testing. It is very difficult to develop fully isolated unit tests in Yii, so an application is started before each test case.
- YII 3553 2019-11-05 15:04:45
-
- How to initialize yii
- After Yii2 is installed, according to the official documentation, you need to initialize ./init. During initialization, we select Development mode. The main work of initialization is to generate some configuration files and script files.
- YII 2830 2019-11-05 14:55:44
-
- yii close error prompt
- How to turn off error prompts in yii: change error_reporting in the php.ini file to: error_reporting=E_ALL & ~E_NOTICE.
- YII 2928 2019-11-05 14:39:36
-
- How to access the controller in yii2
- Yii2's default controller has only one directory under the controller directory. When needed for development, you need to add a new directory under this directory, that is, add a secondary directory under the controller, such as: controller/api/MemberController. php.
- YII 4315 2019-11-05 14:28:06
-
- yii2 determines whether the table exists
- The method for yii2 to determine whether a table exists is divided into two steps: the first step is to find all the table names in the database, and the table names are obtained as two-dimensional arrays; the second step is to determine whether the table names exist in the two-dimensional array.
- YII 2739 2019-11-05 14:08:41
-
- How to implement yii2 routing
- yii2 routing refers to the part of the URL used to identify the module, controller, and action used to process user requests. It is generally specified by the r query parameter.
- YII 2847 2019-11-05 14:00:27
-
- How to use yii2 session
- Yii2's Session is relatively simple, just operate it directly through \Yii::$app->session.
- YII 2979 2019-11-05 13:43:41
-
- The difference between dao and ar in yii2
- The difference between dao and ar in yii2: AR is not intended to solve all database-related tasks. Its best applications are modeling data tables into PHP structures and executing queries that do not contain complex SQL statements. For complex query scenarios, Yii DAO should be used.
- YII 2686 2019-11-05 13:20:41
-
- Reasons why yii2 cookie cannot be retrieved
- When using the method in yii2 to obtain a cookie, the string in the cookieValidationKey will be read to decrypt it (it will also be used to encrypt the cookie when storing it). Since js does not encrypt the cookie, it cannot be decrypted here, and naturally the cookie cannot be obtained.
- YII 3306 2019-11-05 11:55:48
-
- How to use yii2 aftersave
- After saving, yii2 will call the aftersave method. Aftersave only does one thing, which is to trigger the corresponding event event, EVENT_AFTER_INSERT or EVENT_AFTER_UPDATE. You can look at the events of Yii2
- YII 8001 2019-11-05 11:48:06
-
- How to use jquery in yii
- Yii uses jquery method: Yii::app()->clientScript->registerCoreScript('jquery'); . Through this registration statement, if the system automatically loads it, it will not be registered. If not, jquery will be loaded through this statement.
- YII 2425 2019-11-05 11:34:18