• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
url routing help requered

#1
page: http://easy-bet.divine-marketing.ru/index.php/bet/info/

controller: 
folder: BET
file: info.php

by upper link you can see the work the: public function index()

----------------

I want be able to handle links bellow by index() function, and in same time handle @[email protected]  and @[email protected]  by $_GET[] 

http://easy-bet.divine-marketing.ru/inde...fo/CNUEHfs
http://easy-bet.divine-marketing.ru/inde...o/jdnLJSsS

Is it actually possible? If yes, how to manage it?
THANKS!
Reply

#2
Code:
http://easy-bet.divine-marketing.ru/index.php/bet/info/?var1=CNUEHfs&var2=jdnLJSsS

In your controller (index method), handle the 2 variables with:
PHP Code:
$var1 $this->input->get('var1');
$var2 $this->input->get('var2'); 
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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