What is the difference between an advanced Yii 2 application and a base application?

What is the difference between an advanced application and a base application in a Yii framework?

Do they have any security differences?

+42
yii2
Sep 11 '14 at 13:32
source share
5 answers

The following table shows the similarities and differences between the basic and advanced templates:

Comparison

Source: https://github.com/yiisoft/yii2-app-advanced/blob/master/docs/guide/start-comparison.md

As you can see, the main differences are:

  • Advanced template supports front and rear applications;
  • Advanced template is ready to use the user model;
  • The advanced template supports user registration and password recovery.
+36
Apr 29 '15 at 22:01
source share

There is no difference, because the basic core code of the kernel is the same.

The difference in the structure of the project - the most obvious difference is that the advanced one already has a β€œbackend” setting for you, which you can see for yourself:

https://github.com/yiisoft/yii2-app-basic

https://github.com/yiisoft/yii2-app-advanced

+19
Sep 11 '14 at 14:13
source share

There is nothing else. but you already have an admin panel ( backend ) in the advanced Yii 2 application template.

backend and frontend work as a standalone application using common models and configurations. You can create your own number of applications under the root folder.

lets say that you want to create a RESTFull API in the same project. it’s just that you can create another call to the api directory, the same as the backend or frontend, and it will contain the folder structure, the same as the backend, except for assets, views, widgets, etc.

you need to determine the structure of your project based on the requirement.

Setting RESTful API in Yii2 (budiirawan)

+17
07 Oct '14 at 16:06
source share

One of the main differences (apart from the folder structure for processing the fontend / backend file) is that the advanced template has a user authentication system, while the basic user has a hard encoding in the user model. The advanced template has SignUp / Forgot Password functions.

+13
Dec 15 '14 at 18:33
source share

There is no difference in the main structure, the difference between the templates is the folder structure, you have backend , frontend and common .

I usually use the backend to create the administration area and the frontend to create the user area, but if necessary, you can create another directory to make api as Hanukkah Asanka already said. common configurations will be combined with the backend and frontend configuration files.

The advanced template, like some functions, such as registration, password reset and user model, are ready to use, except that you do not have any difference, the kernel is the same anyway, so it does not make any difference in security.

+11
May 6 '15 at 20:39
source share



All Articles