The app in Ecstore is not an app on the phone, it's a web App package, a collection of web App backend PHP programs, a MySQL data sheet definition, and a front-end html+css+js presentation, usually to implement a business function such as shopping carts, promotions, payment interfaces, etc.
Open the Ecstore file directory and store all of the app's apps in the app directory, mainly in three categories:
1. Bottom App
The underlying app primarily refers to the base application, which is the kernel (kernel) in the Ecstore, provides system-based database access, app and service management, cache management, basic MVC implementations, etc., and base also provides app installation and uninstallation.
2. Support Layer App
Support Layer app has e-commerce general components ECtools, foreground site, background management desktop, role permissions Pam, database dynamic expansion Dbeav, etc., the business Layer app can easily reference these basic support functions, so as to focus on the development of business functions, do not worry about the underlying function implementation.
3. Business Layer App
Business Layer app is usually the business function app that we develop, the most important thing in Ecstore is the consumer application, it realizes the most important products, members, orders and other important function parts in the store system.
A typical structure for a business-tier app:
Controller
-admin Background Management Controller
-site Front End PC controller
-wap front-End WAP controller
Dbschema
-table1.php data Table Definition
Lib
-lib1.php General Class Library
Model
-table1.php table Model Definition
Statics storing static resource files: Pictures, style sheets, JS, etc.
-images static picture file
-css Static CSS Files
View
-admin Background management view files
-site Front End PC view File
-wap front-end WAP View File
App.xml application definition
Desktop.xml Admin menu, permissions and other definitions
Service.xml Service Registration
Site.xml front-end PC-accessible module definition
Wap.xml front-end WAP-accessible module definition
Take a look at the definition of App.xml in a starbuy group purchase promotion Application
The most important thing is to define the name of the application, and other applications that depend on it, we can see the name and description of the app in the Ecstore admin/app Center of the depends, install and uninstall.
Desktop.xml defines the app's background Management menu group Menugroup, menu item menu, permissions permission
After you install this app, you can open the Admin function interface for your app in the background/promotions/combo promotion.
Site.xml defines a PC-side front-end access to resource special, etc.
Service.xml used to register the service in the app with the system
More Ecstore Questions >>
What is the app in Ecstore?