• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can a controller with index() have further characters in the URI?

#1
[eluser]Samuurai[/eluser]
Hi,

I need my index() function in my contract controller to answer the following url:

www.domain.com/contract/15

15 being the contract ID.

This works with non index() functions.

#2
[eluser]mohsin917[/eluser]
use it like index function parameter index($x = 0)

and change you link to www.domain.com/contract/index/15


here the index is the function name, 15 is your input item.

#3
[eluser]Samuurai[/eluser]
Brilliant.. makes perfect sense!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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