Preliminary notes on Ecstore

Source: Internet
Author: User
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.