Welcome Guest, Not a member yet? Register   Sign In
Get and Override Default Controller Programmatically
#1

[eluser]goFrendiAsgard[/eluser]
Dear, everyone.

I know how to change the default controller by editing application/config/routes.php and changing this line
Code:
$route['default_controller'] = "Blog";

Now, I want to get the $route['default_controller'] value as string. Does anyone know how to do that?

Further I also want to change the $route['default_controller'] programmatically. I think I can do that by using file_put_contents in the risk of not permitted operation, so I still hope for better way to do it.

Thanks


Messages In This Thread
Get and Override Default Controller Programmatically - by El Forum - 07-31-2012, 04:42 PM
Get and Override Default Controller Programmatically - by El Forum - 08-01-2012, 07:46 AM
Get and Override Default Controller Programmatically - by El Forum - 08-01-2012, 07:53 AM
Get and Override Default Controller Programmatically - by El Forum - 08-01-2012, 10:13 AM
Get and Override Default Controller Programmatically - by El Forum - 08-01-2012, 01:10 PM
Get and Override Default Controller Programmatically - by El Forum - 08-01-2012, 01:42 PM
Get and Override Default Controller Programmatically - by El Forum - 08-01-2012, 01:51 PM
Get and Override Default Controller Programmatically - by El Forum - 08-01-2012, 02:00 PM
Get and Override Default Controller Programmatically - by El Forum - 08-01-2012, 02:08 PM
Get and Override Default Controller Programmatically - by El Forum - 08-01-2012, 02:12 PM
Get and Override Default Controller Programmatically - by El Forum - 08-01-2012, 02:17 PM
Get and Override Default Controller Programmatically - by El Forum - 08-01-2012, 02:24 PM
Get and Override Default Controller Programmatically - by El Forum - 08-01-2012, 02:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB