Welcome Guest, Not a member yet? Register   Sign In
Question regarding the uri + more
#7

[eluser]Michael Wales[/eluser]
2) The most common way is to have a method that is just designed to accept a form submission (via POST) and redirect to another method that will handle that search. Something like this:

Code:
function search($query = NULL) {
  if ($this->input->post('q')) {
    redirect('search/' . $this->input->post('q'));
    return;
  }

  if ($query !== NULL) {
    // Do your search and display results
  }
}

You would then also need to define a route to translate any request to search/term to search/search/term - easy stuff and you get your linkable SEO friendly search results.


3) CodeIgniter (out of the box) does not support the ending of a session on browser close, but there are numerous posts around the forums that will instruct you on how to enable this functionality. Switching to another session library is a bit overkill to enable this really basic functionality.


Messages In This Thread
Question regarding the uri + more - by El Forum - 06-30-2009, 10:10 AM
Question regarding the uri + more - by El Forum - 06-30-2009, 10:36 AM
Question regarding the uri + more - by El Forum - 06-30-2009, 12:09 PM
Question regarding the uri + more - by El Forum - 06-30-2009, 12:33 PM
Question regarding the uri + more - by El Forum - 06-30-2009, 02:20 PM
Question regarding the uri + more - by El Forum - 07-02-2009, 04:38 AM
Question regarding the uri + more - by El Forum - 07-02-2009, 07:47 AM
Question regarding the uri + more - by El Forum - 07-02-2009, 02:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB