Ecstore Xiao Kee
Main app
Base base MVC
Dbeav Database Extension
Pam Login Authentication
Setup System Installation Tool
Image Image Access
Site sites
Desktop background operations
ECtools e-Commerce basic tools
Consumer order, product, member
Search Participle + Index
Directory Structure--project directory structure
Ecstore folder
App App Catalog
Config configuration file directory
config.php Master configuration file
Deploy.xml
install.lock.php mounting lock, can only be installed once
mapper.php Routing
Data file
Demo Initialization Data Directory
Public upload files and pictures 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 Interconnect components
APP directory structure
App/ecbook/model Model Catalog
App/ecbook double-click to view the original Iew view directory
App/ecbook/controller Controller Directory
App/ecbook double-click to view original schema database table structure definition
App/ecbook/lang Language Pack Folder
App/ecbook double-click to view the original B PHP class library file
App/app.xml App description File
App/desktop.xml app background Level One or two menu structure
App/site.xml App Foreground menu structure
App double click to view original Rvices.xml services registered with this app
Call of Model
1. Get the Model object
Get the model for this app
$model = $this->app->model (' $model ');
Get the model for other apps
$model = App::get (' consumer-to-consumer ')->model ($model);;
More general Method Kernel::single ()
$model = Kernel::single (' B2c_mdl_$model ')
2. Get database operation object in model
By calling the base class member variable $db
$result = $this->db->select ($sql);
Get database operand directly by kernel::d atabase ()
$result = kernel::d atabase ()->select ($sql);
Methods for instantiating classes in ECOS
1, App::get (' $app ')->model (' $model ');
App::get (' $app ')->render ();
Used primarily to invoke the Model,base_render class
2, the General Method Kernel::single (' $class ');
Used primarily to invoke classes in Lib