基於微擎用法心得

在查詢sql語句是加上tablenme
$sql = "SELECT*FROM".tablename
安裝微擎
第一步在首頁下載we7
第二部打開瀏覽器訪問localhost/install.php
第三部登入安裝 
設置數據庫在data中的config.php
顯示模板   include $this->template();

http://we7.cc/web/index.php/?=platform&a=menu&
路由/web/source/platform/menu.ctrl.php

http://we7.cc/app/index/=me&a=home&
路由app/source/mc/home.ctrl.php

http://we7.cc/web/index.php?c=site&do=themeset&m=we7_demo
路由/addons/we_7demo/site.php中的dowenthemeset()方法

htt://we7.cc/app/index.php?i=1&c=entry&do=list&m=we7_dome
路由/addons/we7_demo/site.php     文件中的doMobileList()

load->func(string $string)   加載系統公共函數framework/functio/*.func.php


publi function doMobileindex1(){
$global $_W,$_GPC;
//addons/we7_demo/template/mobile/index1.html
include $this->template('index')

load 加載器


$setting = $_W['setting'];
//將渲染web/themes/default/test/appcs.html文件
template('test/appcs');    

微信網支付
1:後臺設置支付url: 2:商戶平臺設置回調地址


 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章