美文网首页
微擎模板路由

微擎模板路由

作者: StevenQin | 来源:发表于2019-04-24 12:41 被阅读0次
  • 前端app目录渲染模板

MVC 模式
http://mall.raycare.net/app/index.php?i=5&c=entry&do=index&m=health_moniter

public function doMobileIndex() {
        //这个操作被定义用来呈现 功能封面
        global $_W,$_GPC;
        include $this->template('index');
        echo IA_ROOT."<br/>";
        echo MODULE_URL."<br/>";
        echo $_GPC['m']."<br/>";
        //网站的域名
        echo $_W['siteroot']."<br/>";
//        var_dump($_W);
    }
  • 后台 web目录渲染模板
  • 开启开发者模式
//data/config.php
$config['setting']['development']=1;

*创建 url路由
https://s.w7.cc/index.php?c=wiki&do=view&id=1&list=162

常用路由创建

  //创建前台路由
        echo $this->createMobileUrl('index')."<br/>";
        //创建后台路由
        echo $this->createWebUrl('guanli')."<br/>";
./index.php?i=5&c=entry&do=index&m=health_moniter
./index.php?c=site&a=entry&do=guanli&m=health_moniter

相关文章

  • 微擎模板路由

    前端app目录渲染模板 MVC 模式http://mall.raycare.net/app/index.php?...

  • 微擎模板引擎

    $this->template('xxx')说明 类似smarty模板引擎 1、如果写在模块的前台方法functi...

  • 微擎模板消息

    sendTplNotice https://s.w7.cc/index.php?c=wiki&do=view&id...

  • 微擎笔记2

    微擎笔记2 微擎路由: 入口脚本程序获取到到URL中相关的GET参数,解析后进行权限判断,然后调用相应的控制器处理...

  • 微擎:URL路由&创建

    摘自:https://www.kancloud.cn/donknap/we7/134629 URL路由 入口脚本程...

  • 【微擎】URL路由及创建

    一、公众号模块方法 二、模块URL 前台(app端) 后台(web端) 上面URL中出现的eid在数据表ims_m...

  • mui监听tap跳转

    监听单个事件并跳转(写在jquery加载完) url路由生成,用到微擎的createMobileUrl(" ")方...

  • 微擎模板——L系列(单版)

    模板特色: angular5 + ng-content 加强了微擎商城系统的运用,作为移动端SAAS系统,就目前微...

  • 微擎笔记3->路由

    之前没接触过微擎 ,这个路由真的要被烦死,建议刚接触的宝宝们一定一定先看开发文档,再去接触代码 ,over. 1、...

  • Node-4

    路由与模板引擎 路由:简单来说就是,根据不同请求的URL,处理不同的业务逻辑; ESJ模板引擎:是一种后台模板,可...

网友评论

      本文标题:微擎模板路由

      本文链接:https://www.haomeiwen.com/subject/iliwgqtx.html