CodeIgniter Forums
I want to change the url - 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: I want to change the url (/thread-32940.html)



I want to change the url - El Forum - 08-10-2010

[eluser]Wonder Woman[/eluser]
Hi,

I have a view called search inside a folder called properties.

When I load this view in the controller after a form has been submitted the url does not change? Haw can I get the url to say '../properties/search'

My code is:

Code:
$this->load->view('properties/search', $data);


Thanks


I want to change the url - El Forum - 08-10-2010

[eluser]danmontgomery[/eluser]
Code:
$this->load->helper('url');
redirect('properties/search');

You do realize, however, that url structure and view structure are in no way related?