routes help

#1
[eluser]sasori[/eluser]
let's say I have 2 controllers
1) welcome controller
2) stocks controller

and then on the welcome_view page, I want a link that will redirect the user to the stocks_view page

is this correct ?, not sure if its with the $route config file or the code itself
Code:
echo anchor('stocks/stocks_view','proceed to stocks page');

should i add on the $route something like this ?
Code:
$route['default_controller'] = "welcome"; //this one is the main right ?
$route['default_controller'] = "stocks"; //<-- is this correct ?


Messages In This Thread
routes help - by El Forum - 01-19-2010, 03:57 AM
routes help - by El Forum - 01-19-2010, 05:22 AM
routes help - by El Forum - 01-19-2010, 05:22 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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