CodeIgniter Forums
Load view with hashtag - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Load view with hashtag (/thread-42291.html)



Load view with hashtag - El Forum - 06-02-2011

[eluser]Kola[/eluser]
Hey,

I've testing some new stuff out with content on 1 page, so I pretty much load 1 view for the the entire frontpage containing the information for various things.

The main thing is that I have content and login on the same page, seperated by #home, #login etc.

Now my question is wether or not I can specify the hashtag in the load view? Specificly I need to do so if there's an error in my login form, so the user can see the errors.

Where you'd normally just have a view with the login form, I do:

$this->load->view('template', $data); //htttp://site/index.php

But I need to append the hashtag so it goes to: http://site/index.php#login

How to?