ecstore notes

WBOY
Release: 2016-08-08 09:23:07
Original
1220 people have browsed it

Main app

base basic MVC
dbeav database extension
pam login authentication
setup system installation tool
image image storage
site site
desktop background operation
ectools e-commerce basic tools
b2c orders, products, members
search word segmentation+ Index

Directory structure - project directory structure

ecstore folder
app application directory
config configuration file directory
config.php main configuration file
deploy.xml
install.lock.php installation lock, can only be installed once
mapper.php routing
data data file
demo initialization data directory
public upload file and picture directory
themes template file directory
index.php application main entry file
license.txt ECOS software protocol file
readme.txt installation instructions
rpc. txt ECOS project interconnection components


app directory structure
app/ecbook/model model directory
app/ecbook double-click to view the original image iew view directory
app/ecbook/controller controller directory
app/ecbook double-click to view the original image schema database Table structure definition
app/ecbook/lang language pack folder
app/ecbook double-click to view the original image b php class library file
app/app.xml app description file
app/desktop.xml app background first and second level menu structure
app /site.xml App front-end menu structure
Double-click the app to view the original image rvices.xml The services registered by this app

Model call
1. Get the model object
Get the model of this app
$model = $this->app- >model('$model');

Get models of other apps
$model = app::get('b2c')->model($model);;

More general method kernel::single ()
$model = kernel::single('b2c_mdl_$model')

2. Obtain the database operation object in the model
by calling the base class member variable $db
$result = $this->db-> select($sql);
Get the database operation object directly through kernel::database()
$result = kernel::database()->select($sql);


Methods for instantiating classes in ECOS
1 , app::get('$app')->model('$model');
app::get('$app')->render();
Mainly used to call model, base_render class
2. The general method kernel::single('$class');
is mainly used to call classes in lib

The above has introduced the ecstore notes, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template