Welcome Guest, Not a member yet? Register   Sign In
URI sesgment
#1

[eluser]anis2505[/eluser]
Hi could someone explain the difference between the following

Code:
function afunction($id)
{
      echo $id;
}
And
Code:
function afunction()
{
     $id = $this->uri->segment(3);
      echo $id;
}

should I use $this->uri->segment(3) or it's the same
As I see all people use the uri->segment way

Hope it's clear

regards


Messages In This Thread
URI sesgment - by El Forum - 06-28-2013, 02:16 PM
URI sesgment - by El Forum - 06-28-2013, 03:17 PM
URI sesgment - by El Forum - 06-28-2013, 03:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB