原创 nginx、TP框架實現兼容pathinfo和rewrite兩種url訪問方式

1、支持rewrite方式: 在 location / 處添加以下代碼 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } 最終變成 l

原创 微擎使用 manifest.xml 來描述模塊的主要功能和配置參數

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns="http://www.we7.cc" versionCode="0.6"> <application sett

原创 微信(js判斷)

if (typeof wx === 'object' && navigator.userAgent.match(/MicroMessenger/i) == "micromessenger") { console.log('

原创 微擎開發(module.php)

使用 public function settingsDisplay($settings) { global $_W, $_GPC; if (checksubmit()) {

原创 tp5僞靜態設置

nginx location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; bre

原创 微擎(客服消息發送)

更新中。。。 https://mp.weixin.qq.com/debug/wxadoc/introduction/custom.html#功能介紹 https://mp.weixin.qq.com/debug/wxadoc/dev/a

原创 微擎manifest.xml

<xm<x>l version="1.0" encoding="utf-8"?> <manifest xm<x>lns="http://www.we7.cc" versionCode="0.6"> <application set

原创 小程序學習(一)tabBar底部導航

{ "pages":[ "pages/index/index", "pages/logs/logs", "pages/wish/wish", "pages/surprise/surprise",

原创 小程序(php轉base64)顯示圖片

php代碼 if($fp = fopen($path,"rb", 0)) { $gambar = fread($fp,filesize($path)); fc

原创 微擎開發(目錄)

include MODULE_ROOT . "/config.php"; MODULE_ROOT 模塊根目錄 使用加密2.0時定義路徑的注意事項 使用加密2.0的開發者注意一下下面這個問題: 模塊內如果定義路徑不要根據當前路徑(__F

原创 微擎開啓redis memcache

config.php // -------------------------- CONFIG SETTING --------------------------- // $config['setting']['charset'

原创 phpstorm識別wxss

添加後綴就可以顯示了

原创 微擎開發(圖片上傳和跳轉鏈接)

<div class="form-group"> <label class="col-xs-12 col-sm-3 col-md-2 control-label">圖片鏈接</label> <div cla