Welcome Guest, Not a member yet? Register   Sign In
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 @CNUEHfs@  and @jdnLJSsS@  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




Theme © iAndrew 2016 - Forum software by © MyBB