Arslan - 1 year ago 133
PHP Question

# creating back page links in Codeigniter

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.

similarly like above "add" is the current function.

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.

<a href="javascript:window.history.go(-1);">Go back</a>