title: How to get previous page url in codeigniter
body: <p>I need privously visited page url in a variable and to find it inside a controller. is there any way to find it?please help me.By using following code 
  redirect($this->agent->referrer());</p>
  
  <p>i can redirected to the previous page .but I need this inside  a variable to check.</p>