修复模板中的bug
This commit is contained in:
@@ -60,7 +60,7 @@ class InitHook {
|
|||||||
$route["admin/" . $value . "/status"] = "admin/content/status?model_id=" . $key;
|
$route["admin/" . $value . "/status"] = "admin/content/status?model_id=" . $key;
|
||||||
$route[$value . "/index"] = "index/content/index?model=" . $value;
|
$route[$value . "/index"] = "index/content/index?model=" . $value;
|
||||||
$route[$value . "/list/:id"] = "index/content/lists?model=" . $value;
|
$route[$value . "/list/:id"] = "index/content/lists?model=" . $value;
|
||||||
$route[$value . "/detail-<id>"] = "index/content/detail?model_id=" . $key;
|
$route[$value . "/detail-<id>"] = "index/content/detail?model=" . $value;
|
||||||
$route["user/" . $value . "/index"] = "user/content/index?model_id=" . $key;
|
$route["user/" . $value . "/index"] = "user/content/index?model_id=" . $key;
|
||||||
$route["user/" . $value . "/add"] = "user/content/add?model_id=" . $key;
|
$route["user/" . $value . "/add"] = "user/content/add?model_id=" . $key;
|
||||||
$route["user/" . $value . "/edit"] = "user/content/edit?model_id=" . $key;
|
$route["user/" . $value . "/edit"] = "user/content/edit?model_id=" . $key;
|
||||||
|
|||||||
@@ -21,12 +21,12 @@
|
|||||||
{$info['content']}
|
{$info['content']}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{prev id="$info['id']" cate="$info['category_id']" model="$info['model_id']"}
|
{prev id="$info['id']" cate="$info['category_id']" model="article"}
|
||||||
<a href="{:url('index/content/detail',array('id'=>$prev['id'],'model_id'=>$prev['model_id']))}" class="prev">
|
<a href="{:url('index/content/detail',array('id'=>$prev['id'],'model_id'=>$prev['model_id']))}" class="prev">
|
||||||
<i class="fa fa-angle-left"></i>
|
<i class="fa fa-angle-left"></i>
|
||||||
</a>
|
</a>
|
||||||
{/prev}
|
{/prev}
|
||||||
{next id="$info['id']" cate="$info['category_id']" model="$info['model_id']"}
|
{next id="$info['id']" cate="$info['category_id']" model="article"}
|
||||||
<a href="{:url('index/content/detail',array('id'=>$next['id'],'model_id'=>$next['model_id']))}" class="next">
|
<a href="{:url('index/content/detail',array('id'=>$next['id'],'model_id'=>$next['model_id']))}" class="next">
|
||||||
<i class="fa fa-angle-right"></i>
|
<i class="fa fa-angle-right"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user