在 Codeigniter 中创建后页链接 [英] creating back page links in Codeigniter
问题描述
我有一个 URL 的页面 http://arslan/admin/Codeigniter 中的 category/index/0/name/asc/10.在这个 URL 中,uri_segment
从 0
开始.这个(0
)是默认搜索值,name
和asc
是默认的排序字段和顺序,10是分页索引.
I have a page with URL http://arslan/admin/category/index/0/name/asc/10 in Codeigniter.
In this URL, the uri_segment
start from 0
. This (0
) is the default search value, name
and asc
are the default sort field and order, and 10 is the pagination index.
现在,如果我移动到带有 URL 的添加页面 (http://arslan/admin/category/add/)类似上面的add"是当前函数.
Now if I move to an add page with URL (http://arslan/admin/category/add/) similarly like above "add" is the current function.
现在,如果我想通过链接返回到后页...我如何将用户转移回来?我无法让 URL 返回.
Now if i want to go back through a link to back page... How can I divert the user back? I can't make the URL go back.
有人可以帮我吗?
推荐答案
我不确定我是否正确理解了问题,如果没有请忽略我的回答,但我认为您想要一个返回上一页"的链接,类似于网络浏览器中的后退按钮.
I am not sure if i understand the question correctly, if not please ignore my answer, but I think you want a link to "go back to previous page", similar to the back-button in a web browser.
如果是这样,您可以使用 javascript 通过简单地使用这一行来解决这个问题:
If so you could use javascript to solve this by simply using this line:
<a href="javascript:window.history.go(-1);">Go back</a>
这篇关于在 Codeigniter 中创建后页链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!