title: Codeigniter and Pagination with Query Strings
body: <p>I am trying to build a Search with Pagination in Codeigniter and would love some help with it.  </p>
  
  <p>So far, I've realized that I can not use BOTH url segments and query strings together. Using only query strings produces very ugly URLs.</p>
  
  <p>I understand that Codeigniter destroys the GET and I'm trying to put it back in. Ergo... if I place this in the constructor of the search controller, will my problems be solved?</p>
  
  <pre><code>        parse_str(substr(strrchr($_SERVER['REQUEST_URI'], "?"), 1), $_GET);
  </code></pre>
  
  <p>As in, if it works for me, is there anything I need to be aware of security wise?</p>