CodeIgniter Forums
Load view with hashtag - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Load view with hashtag (/thread-42291.html)

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


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?