CodeIgniter Forums
url routing help requered - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: url routing help requered (/showthread.php?tid=67707)



url routing help requered - wmag777 - 03-29-2017

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 @CNUEHfs@  and @jdnLJSsS@  by $_GET[] 

http://easy-bet.divine-marketing.ru/index.php/bet/info/CNUEHfs
http://easy-bet.divine-marketing.ru/index.php/bet/info/jdnLJSsS

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


RE: url routing help requered - Wouter60 - 03-29-2017

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');