Welcome Guest, Not a member yet? Register   Sign In
Database driven routes in CodeIgniter
#12

[eluser]Unknown[/eluser]
Hello,

I am using this piece of code and I want to extend it. But I need now a config variable in the Router_Hook.php.
To do this, I thought I do the same as with the database variables:

So in the hook.php file I added the following:
Code:
require_once BASEPATH."application/config/config.php";
And I thought now I can access all the config variables. But it isn't!

if I do for example:
Code:
echo $config['base_url'];
in the hook.php file. It seems that this variable is empty. if I print the config array I don't see the content. Even not Array( ).

What is going wrong?
(I'm new to CodeIngiter)

Thanks,
Kristof


Messages In This Thread
Database driven routes in CodeIgniter - by El Forum - 06-28-2009, 10:04 AM
Database driven routes in CodeIgniter - by El Forum - 07-01-2009, 11:42 AM
Database driven routes in CodeIgniter - by El Forum - 07-01-2009, 12:00 PM
Database driven routes in CodeIgniter - by El Forum - 07-01-2009, 12:32 PM
Database driven routes in CodeIgniter - by El Forum - 07-01-2009, 01:41 PM
Database driven routes in CodeIgniter - by El Forum - 07-03-2009, 02:41 PM
Database driven routes in CodeIgniter - by El Forum - 07-03-2009, 03:36 PM
Database driven routes in CodeIgniter - by El Forum - 01-25-2010, 06:30 PM
Database driven routes in CodeIgniter - by El Forum - 02-21-2010, 04:22 AM
Database driven routes in CodeIgniter - by El Forum - 05-15-2010, 04:01 AM
Database driven routes in CodeIgniter - by El Forum - 05-15-2010, 06:29 AM
Database driven routes in CodeIgniter - by El Forum - 05-19-2010, 01:40 PM
Database driven routes in CodeIgniter - by El Forum - 05-20-2010, 02:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB