Reputation: 35
I am trying to get a route working, all I get so far is errors. So far I have:
$route['gig/(:any)/(:any)'] = "gig/details/$1/$2/$3";
$1 is a gigcode variable, $2 is the seller and $3 is the title. I want the url to say gig/seller/title? How would I go about achieving this?
Upvotes: 0
Views: 41
Reputation: 1950
You will require a controller called gig
, and a method called details
in the following format:
public function details($gig_id, $seller, $title) {
}
Also your route is lacking one token, it should be:
$route['gig/(:any)/(:any)/(:any)'] = "gig/details/$1/$2/$3";
to correspond with your URL requirement.
Upvotes: 1