search
HomeBackend DevelopmentPHP Tutorialshopnc secondary development (1), shopnc secondary development (_PHP tutorial

shopnc secondary development (1), shopnc secondary development (

---Restore content starts---

I had never come into contact with shopnc before, and I thought the interface was quite beautiful. However, later I needed to develop an e-commerce system, so I took a look at it and found the architecture to be a complete mess. However, there is usually a lot of secondary development business for this system, so I will briefly summarize it.

shopnc has three products, b2b2c, c2c and o2o, which use the same mvc framework and the same development specifications, so if you understand one of them, you can understand the other two products.

shopnc uses the self-developed mvc framework. After a cursory look, it is relatively simple.

Let’s start with the file structure

├─admin
│ ├─config
│ ├─control
│ ├─framework
│ │ └─libraries
│ ├─include
│ ├─language
│ │ ├─zh
│ │ └─zh_cn
│ └─templates
│ └─default
│ ├─css
│ │ └─font
│ │ └─font-awesome
│ │ ├─css
│ │ └─font
│ ├─images
│ │ ├─login
│ │ ├─mac
│ │ ├─member
│ │ └─sky
│ └─layout
├─chat
│ ├─config
│ ├─control
│ ├─language
│ │ └─zh_cn
│ ├─resource
│ │ └─js
│ └─templates
│ └─default
│ ├─css
│ └─images
├─circle
│ ├─config
│ ├─control
│ ├─framework
│ │ ├─function
│ │ └─libraries
│ ├─language
│ │ ├─zh
│ │ └─zh_cn
│ ├─model
│ ├─resource
│ │ └─js
│ │ └─miniditor
│ └─templates
│ └─default
│ ├─css
│ ├─images
│ │ ├─member-card
│ │ ├─shareicon
│ │ └─smilier
│ └─layout
├─cms
│ ├─config
│ ├─control
│ ├─framework
│ │ ├─function
│ │ └─libraries
│ ├─language
│ │ └─zh_cn
│ ├─model
│ ├─resource
│ │ └─js
│ └─templates
│ └─default
│ ├─css
│ ├─images
│ │ ├─attitude
│ │ ├─dialog
│ │ └─shareicon
│ └─layout
├─core
│ ├─framework
│ │ ├─cache
│ │ ├─core
│ │ ├─db
│ │ ├─function
│ │ └─libraries
│ └─language
├─data
│ ├─api
│ │ ├─snsapi
│ │ │ ├─qqweibo
│ │ │ ├─qqzone
│ │ │ │ ├─comm
│ │ │ │ ├─oauth
│ │ │ │ ├─share
│ │ │ │ └─user
│ │ │ └─sinaweibo
│ │ ├─taobao
│ │ │ └─request
│ │ └─xs
│ │ ├─app
│ │ ├─lib
│ │ └─util
│ │ └─skel
│ │ ├─css
│ │ └─img
│ ├─area
│ ├─cache
│ │ ├─adv
│ │ ├─fields
│ │ ├─index
│ │ ├─rec_position
│ │ └─tpl
│ ├─config
│ ├─crontab
│ │ └─include
│ ├─log
│ ├─model
│ ├─resource
│ │ ├─examples
│ │ ├─font
│ │ ├─highcharts
│ │ ├─js
│ │ │ ├─ajaxfileupload
│ │ │ ├─cms
│ │ │ ├─colorpicker
│ │ │ ├─dialog
│ │ │ │ └─images
│ │ │ ├─fileupload
│ │ │ ├─jcarousel
│ │ │ │ └─skins
│ │ │ │ ├─ie7
│ │ │ │ ├─personal
│ │ │ │ └─tango
│ │ │ ├─jquery-ui
│ │ │ │ ├─i18n
│ │ │ │ └─themes
│ │ │ │ ├─smoothness
│ │ │ │ │ └─images
│ │ │ │ └─ui-lightness
│ │ │ │ └─images
│ │ │ ├─jquery-ui-timepicker-addon
│ │ │ ├─jquery.imgareaselect
│ │ │ ├─jquery.Jcrop
│ │ │ ├─jquery.nyroModal
│ │ │ │ ├─img
│ │ │ │ └─styles
│ │ │ ├─jquery.raty
│ │ │ │ └─img
│ │ │ ├─map
│ │ │ ├─qtip
│ │ │ ├─slidesjs
│ │ │ └─smilies
│ │ │ └─images
│ │ ├─kindeditor
│ │ │ ├─attached
│ │ │ ├─lang
│ │ │ ├─php
│ │ │ ├─plugins
│ │ │ │ ├─anchor
│ │ │ │ ├─autoheight
│ │ │ │ ├─baidumap
│ │ │ │ ├─clearhtml
│ │ │ │ ├─code
│ │ │ │ ├─emoticons
│ │ │ │ │ └─images
│ │ │ │ ├─filemanager
│ │ │ │ │ └─images
│ │ │ │ ├─flash
│ │ │ │ ├─image
│ │ │ │ │ └─images
│ │ │ │ ├─insertfile
│ │ │ │ ├─lineheight
│ │ │ │ ├─link
│ │ │ │ ├─map
│ │ │ │ ├─media
│ │ │ │ ├─multiimage
│ │ │ │ │ └─images
│ │ │ │ ├─pagebreak
│ │ │ │ ├─plainpaste
│ │ │ │ ├─preview
│ │ │ │ ├─quickformat
│ │ │ │ ├─table
│ │ │ │ ├─template
│ │ │ │ │ └─html
│ │ │ │ └─wordpaste
│ │ │ └─themes
│ │ │ ├─common
│ │ │ ├─default
│ │ │ ├─qq
│ │ │ └─simple
│ │ ├─phpqrcode
│ │ │ ├─bindings
│ │ │ │ └─tcpdf
│ │ │ ├─cache
│ │ │ │ ├─mask_0
│ │ │ │ ├─mask_1
│ │ │ │ ├─mask_2
│ │ │ │ ├─mask_3
│ │ │ │ ├─mask_4
│ │ │ │ ├─mask_5
│ │ │ │ ├─mask_6
│ │ │ │ └─mask_7
│ │ │ ├─temp
│ │ │ └─tools
│ │ ├─seccode
│ │ │ ├─font
│ │ │ │ ├─ch
│ │ │ │ └─en
│ │ │ └─gif
│ │ │ └─ShopNC
│ │ └─web_config
│ ├─session
│ ├─smilies
│ └─upload
│ ├─circle
│ │ └─group
│ ├─cms
│ │ ├─article
│ │ └─index_html
│ ├─microshop
│ └─shop
│ ├─activity
│ ├─adv
│ ├─article
│ ├─auth
│ ├─avatar
│ ├─brand
│ ├─common
│ ├─complain
│ ├─editor
│ ├─groupbuy
│ │ └─1
│ ├─inform
│ ├─login
│ ├─member
│ ├─membertag
│ ├─mobile
│ │ ├─ad
│ │ └─category
│ ├─pointprod
│ ├─rec_position
│ ├─store
│ │ ├─1
│ │ ├─2
│ │ ├─goods
│ │ │ ├─1
│ │ │ └─2
│ │ └─slide
│ ├─store_joinin
│ ├─voucher
│ └─watermark
├─microshop
│ ├─config
│ ├─control
│ ├─framework
│ │ ├─function
│ │ └─libraries
│ ├─language
│ │ └─zh_cn
│ ├─model
│ ├─resource
│ │ └─js
│ │ ├─fileupload
│ │ ├─jcarousel
│ │ │ └─skins
│ │ │ └─personal
│ │ └─smilies
│ │ └─images
│ └─templates
│ └─default
│ ├─css
│ ├─images
│ │ ├─dialog
│ │ ├─ie6
│ │ ├─index-temp
│ │ ├─member-card
│ │ └─shareicon
│ └─layout
├─mobile
│ ├─api
│ │ └─payment
│ │ └─alipay
│ │ ├─images
│ │ ├─key
│ │ └─lib
│ ├─config
│ ├─control
│ ├─framework
│ │ └─function
│ ├─language
│ │ └─zh_cn
│ ├─model
│ ├─readme
│ │ ├─api_files
│ │ └─sql
│ └─templates
│ └─default
│ └─layout
├─shop
│ ├─api
│ │ ├─payment
│ │ │ ├─alipay
│ │ │ ├─chinabank
│ │ │ └─tenpay
│ │ │ └─classes
│ │ ├─qq
│ │ │ ├─comm
│ │ │ ├─oauth
│ │ │ └─user
│ │ └─sina
│ ├─config
│ ├─control
│ ├─framework
│ │ ├─function
│ │ └─libraries
│ ├─install
│ │ ├─css
│ │ ├─data
│ │ ├─images
│ │ └─include
│ ├─language
│ │ ├─zh
│ │ └─zh_cn
│ ├─resource
│ │ ├─font
│ │ │ └─font-awesome
│ │ │ ├─css
│ │ │ └─font
│ │ └─js
│ └─templates
│ └─default
│ ├─buy
│ ├─css
│ ├─home
│ ├─images
│ │ ├─buy
│ │ ├─ie6
│ │ ├─member
│ │ │ └─shareicon
│ │ ├─member-card
│ │ ├─payment
│ │ ├─seller
│ │ │ └─login
│ │ ├─shop
│ │ ├─sns
│ │ ├─store_joinin
│ │ └─treetable
│ ├─layout
│ ├─member
│ ├─seller
│ ├─sns
│ │ └─style
│ │ ├─skin01
│ │ ├─skin02
│ │ ├─skin03
│ │ ├─skin04
│ │ ├─skin05
│ │ └─skin06
│ └─store
│ └─style
│ ├─default
│ │ └─images
│ ├─style1
│ │ └─images
│ ├─style2
│ │ └─images
│ ├─style3
│ │ └─images
│ ├─style4
│ │ └─images
│ └─style5
│ └─images
└─wap
├─bug
├─css
├─html
│ └─web
│ ├─css
│ ├─images
│ ├─js
│ │ └─tmpl
│ ├─tmpl
│ │ ├─member
│ │ └─order
│ └─upload
├─images
├─js
│ └─tmpl
├─tmpl
│ ├─member
│ └─order
└─upload

 

文件夹功能如下

admin            后台

chat               在线im

circle              圈子

cms               cms文章系统

core               公共文件

data               数据存放

microshop       微商城

mobile             手机app服务端

shop               前台

wap                wap端

 

先看前台,前台的逻辑和模板都在shop目录中,web目录中index.php会自动转向到shop目录

shop的目录文件功能如下:

api                     外部api调用

config                 配置文件

control               控制器(业务逻辑)

framework          框架

install                 安装文件

language            多语言配置文件目录

resource             素材

templates           模板目录

 

mvc 框架中的 m 在上级目录中 data/model 中,v 在当前目录 templates 中 ,而 c 就是 control 文件夹

明白了文件夹含义,修改相对应的逻辑就比较简单了

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/967696.htmlTechArticleshopnc二次开发(一),shopnc二次开发( ---恢复内容开始--- 以前没有怎么接触过shopnc,感觉界面挺漂亮的,不过后来自己需要开发一个电商系...
Statement
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
简单易懂的Java海康SDK二次开发指南简单易懂的Java海康SDK二次开发指南Sep 06, 2023 pm 02:01 PM

简单易懂的Java海康SDK二次开发指南引言:随着摄像监控技术的发展,海康威视已成为全球领先的安防解决方案供应商之一,其提供的SDK(软件开发工具包)为开发人员提供了丰富的功能和接口,用于二次开发和定制化开发。本文将介绍如何使用Java语言进行海康SDK的二次开发,并提供一些代码示例,以帮助读者更好地理解和应用。一、环境准备首先,在进行海康SDK二次开发之前

百度智能云千帆大模型平台再升级:5款大模型、55个工具组件上新!百度智能云千帆大模型平台再升级:5款大模型、55个工具组件上新!Mar 22, 2024 am 08:10 AM

服务8万企业用户,累计帮助用户精调1.3万个大模型,帮助用户开发出16万个大模型应用,自2023年12月以来百度智能云千帆大模型平台API日调用量环比增长97%...从一年前国内大模型平台的“开路先锋”到如今的大模型“超级工厂”,百度智能云千帆大模型平台在国内大模型市场牢牢占据着领先身位,但奔跑的脚步却并未停歇。3月21日,百度智能云在北京首钢园召开千帆产品发布会,百度智能云在大会期间宣布:1、携手北京市石景山区,共建全国首个百度智能云千帆大模型产业创新基地,助推区域产业腾飞;2、满足企业“效价

TensorFlow深度学习框架模型推理Pipeline进行人像抠图推理TensorFlow深度学习框架模型推理Pipeline进行人像抠图推理Mar 26, 2024 pm 01:00 PM

概述为了使ModelScope的用户能够快速、方便的使用平台提供的各类模型,提供了一套功能完备的Pythonlibrary,其中包含了ModelScope官方模型的实现,以及使用这些模型进行推理,finetune等任务所需的数据预处理,后处理,效果评估等功能相关的代码,同时也提供了简单易用的API,以及丰富的使用样例。通过调用library,用户可以只写短短的几行代码,就可以完成模型的推理、训练和评估等任务,也可以在此基础上快速进行二次开发,实现自己的创新想法。目前library提供的算法模型,

提升Java海康SDK二次开发技能的关键要素提升Java海康SDK二次开发技能的关键要素Sep 06, 2023 pm 01:42 PM

提升Java海康SDK二次开发技能的关键要素摘要:随着物联网的快速发展,视频监控系统在安防领域的应用越来越广泛。而作为视频监控系统中最重要的组成部分,海康威视(Hikvision)的SDK在二次开发过程中扮演着重要的角色。本文将介绍海康SDK的基本使用方法,并提供一些关键要素和代码示例,以帮助读者提升Java海康SDK二次开发技能。一、了解海康SDK的基本概

wordpress二次开发是什么意思wordpress二次开发是什么意思Apr 16, 2024 am 12:09 AM

WordPress 二次开发允许开发人员定制和扩展 WordPress 功能,创建满足特定需求的附加功能、主题和插件。通过二次开发,开发人员可以定制 WordPress,扩展其核心功能,增加其灵活性,并随着网站和业务的发展轻松扩展其可扩展性。

人人都可成为AI开发者!李彦宏带来三大AI开发神器人人都可成为AI开发者!李彦宏带来三大AI开发神器Apr 18, 2024 pm 03:40 PM

2023年初崛起为科技领域最亮的星,展示了凯AI技术变革经济社会的巨大潜能。经过一年多的技术突破和市场验证,进入2024年,大模型的巨大价值已经得到主流国家的共识,主流科技公司纷纷布局。美国、中国等国家,正处于引领大模型产业发展的未来。在国内科技公司中,率先发布文心大模型的百度,已经取得了不凡成果。在今日举办的Create2024百度AI开发者大会上,百度创始人、董事长兼首席执行官李彦宏在主题演讲中透露,文心一言用户数突破2亿,文心大模型成为中国最领先、应用最广泛的AI基础模型。与此同时,李彦宏

MyBatis逆向工程的优势与限制MyBatis逆向工程的优势与限制Feb 22, 2024 pm 07:27 PM

MyBatis是一种流行的持久化框架,它提供了逆向工程的功能,这使得开发人员可以根据数据库中的表结构自动生成实体类、Mapper接口和XML映射文件。逆向工程是MyBatis的一个重要特性,它可以大大减少开发人员的工作量,并提高代码的可维护性。然而,逆向工程也有一些限制,本文将介绍MyBatis逆向工程的优势和限制,并通过具体的代码示例加以说明。首先,让我们

WordPress是什么?详解这个流行的网站建设工具WordPress是什么?详解这个流行的网站建设工具Mar 04, 2024 pm 12:09 PM

WordPress是什么?详解这个流行的网站建设工具WordPress是一个开放源码的内容管理系统(CMS),最初是为博客而设计,但随着发展逐渐成为了全球最流行的网站建设工具之一。它使得网站的创建变得简单易行,不仅适用于个人博客,还广泛应用于企业网站、电子商务平台、新闻网站等各种类型的网站。作为一个开源软件,WordPress拥有一个强大的社区支持和全球化的

See all articles

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

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor