Table of Contents
ecstore小记,ecstore
Home php教程 php手册 ecstore小记,ecstore

ecstore小记,ecstore

Jun 13, 2016 am 09:02 AM
app base mvc pam main Base Expand database Log in

ecstore小记,ecstore

主要app

base 基础MVC
dbeav 数据库扩展
pam 登录认证
setup 系统安装工具
image 图片存取
site 站点
desktop 后台操作
ectools 电商基础工具
b2c 订单,商品,会员
search 分词+索引

目录结构--项目目录结构

ecstore 文件夹
app 应用程序目录
config 配置文件目录
config.php 主配置 文件
deploy.xml
install.lock.php 安装锁,只可以安装一次
mapper.php 路由
data 数据文件
demo 初始化数据目录
public 上传文件和图片目录
themes 模板文件目录
index.php 应用主入口文件
license.txt ECOS软件协议文件
readme.txt 安装说明
rpc.txt ECOS 项目互联用件


app目录结构
app/ecbook/model 模型目录
app/ecbook双击查看原图iew 视图目录
app/ecbook/controller 控制器目录
app/ecbook双击查看原图schema 数据库表结构定义
app/ecbook/lang 语言包文件夹
app/ecbook双击查看原图b php类库文件
app/app.xml app描述文件
app/desktop.xml app后台一二级菜单结构
app/site.xml app前台菜单结构
app双击查看原图rvices.xml 本app注册的services


model 的调用
1、获取model对象
获取本app 的model
$model = $this->app->model('$model');

获取其他app的model
$model = app::get('b2c')->model($model);;

更通用的方法kernel::single()
$model = kernel::single('b2c_mdl_$model')

2、在model中获取数据库操作对象
通过调用基类成员变量$db
$result = $this->db->select($sql);
通过kernel::database()直接获取数据库操作对象
$result = kernel::database()->select($sql);


ECOS 中实例化类 的方法
1、app::get('$app')->model('$model');
app::get('$app')->render();
主要用来调用model,base_render类


2、通用方法kernel::single('$class');
主要用来调用lib中的类

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Steps and precautions for registering a Hong Kong Apple ID (enjoy the unique advantages of the Hong Kong Apple Store) Steps and precautions for registering a Hong Kong Apple ID (enjoy the unique advantages of the Hong Kong Apple Store) Sep 02, 2024 pm 03:47 PM

Apple's products and services have always been loved by users around the world. Registering a Hong Kong Apple ID will bring more convenience and privileges to users. Let’s take a look at the steps to register a Hong Kong Apple ID and what you need to pay attention to. How to register a Hong Kong Apple ID When using Apple devices, many applications and functions require using Apple ID to log in. If you want to download applications from Hong Kong or enjoy the preferential content of the Hong Kong AppStore, it is very necessary to register a Hong Kong Apple ID. This article will detail the steps on how to register a Hong Kong Apple ID and what you need to pay attention to. Steps: Select language and region: Find the "Settings" option on your Apple device and enter

How does Hibernate implement polymorphic mapping? How does Hibernate implement polymorphic mapping? Apr 17, 2024 pm 12:09 PM

Hibernate polymorphic mapping can map inherited classes to the database and provides the following mapping types: joined-subclass: Create a separate table for the subclass, including all columns of the parent class. table-per-class: Create a separate table for subclasses, containing only subclass-specific columns. union-subclass: similar to joined-subclass, but the parent class table unions all subclass columns.

Blackmagic\'s pro-level video app lands on Android, but your phone probably can\'t run it Blackmagic\'s pro-level video app lands on Android, but your phone probably can\'t run it Jun 25, 2024 am 07:06 AM

Blackmagic Design has finally brought its well-praised Blackmagic Camera app to Android. The professional video camera app is free to download, and it offers complete manual controls. These controls aim to make it easier for you to take pro-level cin

iOS 18 adds a new 'Recovered' album function to retrieve lost or damaged photos iOS 18 adds a new 'Recovered' album function to retrieve lost or damaged photos Jul 18, 2024 am 05:48 AM

Apple's latest releases of iOS18, iPadOS18 and macOS Sequoia systems have added an important feature to the Photos application, designed to help users easily recover photos and videos lost or damaged due to various reasons. The new feature introduces an album called "Recovered" in the Tools section of the Photos app that will automatically appear when a user has pictures or videos on their device that are not part of their photo library. The emergence of the "Recovered" album provides a solution for photos and videos lost due to database corruption, the camera application not saving to the photo library correctly, or a third-party application managing the photo library. Users only need a few simple steps

Detailed tutorial on establishing a database connection using MySQLi in PHP Detailed tutorial on establishing a database connection using MySQLi in PHP Jun 04, 2024 pm 01:42 PM

How to use MySQLi to establish a database connection in PHP: Include MySQLi extension (require_once) Create connection function (functionconnect_to_db) Call connection function ($conn=connect_to_db()) Execute query ($result=$conn->query()) Close connection ( $conn->close())

How to handle database connection errors in PHP How to handle database connection errors in PHP Jun 05, 2024 pm 02:16 PM

To handle database connection errors in PHP, you can use the following steps: Use mysqli_connect_errno() to obtain the error code. Use mysqli_connect_error() to get the error message. By capturing and logging these error messages, database connection issues can be easily identified and resolved, ensuring the smooth running of your application.

How to use database callback functions in Golang? How to use database callback functions in Golang? Jun 03, 2024 pm 02:20 PM

Using the database callback function in Golang can achieve: executing custom code after the specified database operation is completed. Add custom behavior through separate functions without writing additional code. Callback functions are available for insert, update, delete, and query operations. You must use the sql.Exec, sql.QueryRow, or sql.Query function to use the callback function.

Base Dawgz ($DAWGZ) multichain token launched on decentralized exchanges today Base Dawgz ($DAWGZ) multichain token launched on decentralized exchanges today Sep 06, 2024 am 06:34 AM

Base's first multichain token Base Dawgz ($DAWGZ) launched on decentralized exchanges today. $DAWGZ debuted on DEX at 18:00 CET and in its first

See all articles