⚠ In case you've missed it we are migrating to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


Get url

url

  • Please log in to reply
No replies to this topic

#1 rteranm

rteranm

    Member

  • Members
  • PipPip
  • 10 posts

Posted 24 November 2012 - 10:04 PM

It has saved me many things, I hope it helps

$url=$this->uri->uri_string();
$accesos = explode("/", $url);
$cantidad=count($accesos);
$url2=$accesos[3];

echo $accesos[0]; //// ci_inici
echo $accesos[1]; //// fnc_ingre_medid
echo $accesos[2]; //// edit
echo $accesos[3]; //// 27

the url is :

http://10.1.1.5/crud...e_medid/edit/27





Also tagged with one or more of these keywords: url

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users