Initial record of ecstore

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

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.