Welcome Guest, Not a member yet? Register   Sign In
URI Issue
#3

[eluser]Christopher Blankenship[/eluser]
With what you typed you are creating a controller called vendor_del with a method of 501. Unless you have routes working another way.

/index.php/controller/method/variable
such as
/index.php/vendor/vendor_del/501

This way you would have a vendor controller a function method called vendor_del being passed the variable 501 using the uri.

Vendor Controller
Code:
<?php
class Vendor extends Controller
{

   function Vendor()
   {
      parent::Controller();
   }

   function vendor_del()
   {
      $id = $this->uri->segment(3, 0);
      if ($id == 0)
         echo "Error No Id passed!";
      else
         echo $id; // do something with the $id;
   }

}
?>


Messages In This Thread
URI Issue - by El Forum - 01-13-2009, 09:15 PM
URI Issue - by El Forum - 01-13-2009, 10:12 PM
URI Issue - by El Forum - 01-13-2009, 10:21 PM
URI Issue - by El Forum - 01-13-2009, 10:31 PM
URI Issue - by El Forum - 01-13-2009, 10:34 PM
URI Issue - by El Forum - 01-13-2009, 10:48 PM
URI Issue - by El Forum - 01-13-2009, 11:13 PM
URI Issue - by El Forum - 01-14-2009, 06:17 AM
URI Issue - by El Forum - 01-14-2009, 07:52 AM
URI Issue - by El Forum - 01-14-2009, 08:29 AM
URI Issue - by El Forum - 01-14-2009, 08:43 AM
URI Issue - by El Forum - 01-14-2009, 08:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB