I
I
Ilya2015-07-29 20:53:53
CodeIgniter
Ilya, 2015-07-29 20:53:53

How to load codeigniter view with anchor?

There is a usual method load
function index()
{
$this->load->view('/page_view');
}
From the controller, this method sends me to
"foo.com/page"
How to insert an anchor and get this --> "foo.com/page#news"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vacoo, 2015-08-06
@vacoo

Make a redirect with an anchor. redirect('foo.com/page#news'). Do you want to display the news page?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question