I have a website layout divided into the multiple partial files. One of them is a view which seats in the sidebar. There is a link in it (Facebook Connect), when I press it, it call a specific function, when it's completed without any errors, i received a blank page.
How to program it, so after processing a function inside another Controller, it will stay at the same url ?
Here is a visual. Imagine that I'am on this url http://localhost/web/blog
. Here, on that page, i have a sidebar loaded with a link in it, which once it's pressed it will process a function. The url of this link in the sidebar is http://localhost/web/member/facebook_login
.
After it's done, it should stay on the same url http://localhost/web/blog
instead of /web/member/facebook_login
.
Is it possible to do it without using a redirect()
function ? So it will stay on the same page whenever you are, if your url is /web/home
or web/about-us
etc. ?
Thanks in advance guys