Welcome Guest, Not a member yet? Register   Sign In
Grabbing a config variable set in /configs/config.php
#1

[eluser]internut[/eluser]
Hey All,

I can find the config array and print it out via:

print_r($this->config);


I'd like to grab a single variable from this array but can not... ?

I tried:

echo $this->config->base_url;

or:

echo $this->config('base_url');

Basically i want to add a var to the config file and be able to pull it out.

Can this be done?
#2

[eluser]Tom Schlick[/eluser]
Code:
$this->config->item('base_url');
#3

[eluser]internut[/eluser]
jesus I shoulda known. Thanks for the reply TRS. Appreciate that.
#4

[eluser]Tom Schlick[/eluser]
[quote author="internut" date="1234331478"]jesus I shoulda known. Thanks for the reply TRS. Appreciate that.[/quote]

jesus knows everything Smile
#5

[eluser]internut[/eluser]
I'll spare you the dumb question and ask him next time Smile
#6

[eluser]Tom Schlick[/eluser]
lol




Theme © iAndrew 2016 - Forum software by © MyBB