Home > Backend Development > PHP Tutorial > ecstore notes, ecstore_PHP tutorial

ecstore notes, ecstore_PHP tutorial

WBOY
Release: 2016-07-13 09:51:31
Original
1176 people have browsed it

ecstore notes, ecstore

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 basics 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 image 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 software


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 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 backend first and second level menu structure
app/site.xml app frontend menu structure
app double-click to view the original image rvices.xml services registered by this app


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

Get the model 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);
Through kernel: :database() directly obtains the database operation object
$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. General method kernel::single('$class');
Mainly used Call the class in lib

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1012740.htmlTechArticleecstore notes, ecstore main app base basic MVC dbeav database extension pam login authentication setup system installation tool image picture storage site site desktop background operation ectools e-commerce basics...
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