• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing parameter to controller method fails

#3
[eluser]Kimse[/eluser]
[quote author="meigwilym" date="1329922967"]You need parentheses around :num for the regex to pass the value.
Code:
$route['video/(:num)'] = 'players/video/$1';

Mei[/quote]

ah damn it! of course. I feel so stupid hehe


but thanks alot!


Messages In This Thread
Passing parameter to controller method fails - by El Forum - 02-22-2012, 03:10 AM
Passing parameter to controller method fails - by El Forum - 02-22-2012, 08:02 AM
Passing parameter to controller method fails - by El Forum - 02-22-2012, 08:13 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.