Ecstore note mainly appbase base MVCdbeav database extension pam login authentication setup system installation tool image access site desktop background operations ectools e-commerce basic tools B2C orders, products, member search Word Segmentation + index directory structure -- project directory structure ecstore folder app directory config configuration file directory ecstore note
Main Apps
Base MVC
Dbeav database extension
Pam logon authentication
Setup system installation tool
Image access
Site
Desktop background operations
Ectools basic e-commerce tools
B2C orders, products, and members
Search Word Segmentation + index
Directory structure -- project directory structure
Ecstore folder
App Directory
Config configuration file directory
Config. php main configuration file
Deploy. xml
Install. lock. php installation lock, only once
Mapper. php route
Data files
Demo Initialization Data Directory
Public Upload file and image directory
Themes template file directory
Index. php application main portal file
License.txt ECOS software protocol File
Readme.txt installation instructions
Rpc.txt ECOS project interconnection
App Directory structure
App/ecbook/model Directory
App/ecbook double-click to view the iew view directory of the source image
App/ecbook/controller Directory
App/ecbook double-click to view the schema definition of the source image database
App/ecbook/lang Language Pack Folder
App/ecbook double-click to view the source B php class library file
App/app. xml app description file
App/desktop. xml app background level 1 and Level 2 menu structure
App/site. xml app foreground menu structure
Double-click the app to view the services registered in the original image rvices. xml.
Call model
1. get the model object
Obtain the model of this app
$ Model = $ this-> app-> model ('$ Model ');
Obtain models of other apps
$ Model = app: get ('B2C')-> model ($ model );;
More common method kernel: single ()
$ Model = kernel: single ('B2C _ mdl _ $ Model ')
2. get database operation objects in model
By calling the base class member variable $ db
$ Result = $ this-> db-> select ($ SQL );
You can use kernel: database () to directly obtain database operation objects.
$ Result = kernel: database ()-> select ($ SQL );
Methods for instantiating classes in ECOS
1. app: get ('$ app')-> model (' $ Model ');
App: get ('$ app')-> render ();
It is mainly used to call the model and base_render classes.
2. General method kernel: single ('$ class ');
It is mainly used to call classes in lib.