Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 1st, 2012  |  syntax: None  |  size: 0.55 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. get application path codeigniter with out contents after last slash
  2. http://localhost/elephanti/connections/fb_connection/invite_friends
  3.        
  4. http://localhost/elephanti/connections/fb_connection
  5.        
  6. echo "<script type='text/javascript'>top.location.href = '"+APPPATH+"'testapp';</script>";
  7.        
  8. $url = site_url($this->uri->segment(1).'/'.$this->uri->segment(2).'/'.$this->uri->segment(3));
  9.        
  10. echo "<script type='text/javascript'>top.location.href = '".$url."'/testapp';</script>";
  11. // here, though, I don't understan how "testapp" goes into the url..as a segment?