<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8&quo
链接:https://pan.baidu.com/s/1Fj6ffsjBJgANMK-QPlcCLA
提取码:g1wc
复制这段内容后打开百度网盘手机App,操作更方便哦
<?php
namespace Model;
use \Think\Model\RelationModel;
class ManagerModel extends RelationModel{
{dede:sql sql='Select arc.title,arc.litpic,arc.id from mzm_archives arc left join mzm_addonarticle addon on addon.aid = arc.id
where find_in_set(arc.typeid,(select group_concat(id) from mz
{dede:sql sql='Select arc.title,arc.litpic from mzm_archives arc left join mzm_addonarticle addon on addon.aid = arc.id
where find_in_set(arc.typeid,(select group_concat(id) from mzm_arctype where reid=(select reid from mzm_a
mysql> Select typeid,title from mzm_archives where find_in_set(typeid,(select group_concat(id) from mzm_arctype where reid=103));
+--------+----------+
| typeid | title |
+----
mysql> select concat('\'',group_concat(id),'\'') from mzm_arctype where reid=(select reid from mzm_arctype where id=(select typeid from
mzm_archives where id=21));
+-------------------------
select group_concat(id) from mzm_arctype where reid=(select reid from mzm_arctype where id=(select typeid from
这里new后面的hello就是路由里面参数name的值,实际就是name=hello。
可以在控制器里面就收 $_GET['name']。收到的值就是hello。
路由就是将url地址经过一定规则改写。
config.php配置路由规则:
return array(