
Untitled
By: a guest on
Jun 1st, 2012 | syntax:
None | size: 0.55 KB | hits: 21 | expires: Never
get application path codeigniter with out contents after last slash
http://localhost/elephanti/connections/fb_connection/invite_friends
http://localhost/elephanti/connections/fb_connection
echo "<script type='text/javascript'>top.location.href = '"+APPPATH+"'testapp';</script>";
$url = site_url($this->uri->segment(1).'/'.$this->uri->segment(2).'/'.$this->uri->segment(3));
echo "<script type='text/javascript'>top.location.href = '".$url."'/testapp';</script>";
// here, though, I don't understan how "testapp" goes into the url..as a segment?