Welcome Guest, Not a member yet? Register   Sign In
edit config array
#3

[eluser]n0xie[/eluser]
[quote author="ranjitbd" date="1251889933"]
so what will be the code in the application/config/config.php
please write the code line not suggest to go user_guide..i already rad that.
[/quote]
Well if you actually HAD looked at the user_guide you would have found this page: the config class, which explains in rather full detail how one would go about solving your 'problem'. Before saying you 'rad' it you might actually want to 'read' it.

Anyway since we usually are quite helpful on the forum, let me 'write the code line'.

config/ftp.php
Code:
$config['ftp_host']    = 'ftp.debian.nl';
$config['ftp_port']    = 21;

controllers/somecontroller.php
Code:
$this->config->load('ftp');
echo $this->config->item('ftp_host');
echo $this->config->item('ftp_port');


Messages In This Thread
edit config array - by El Forum - 09-02-2009, 12:12 AM
edit config array - by El Forum - 09-02-2009, 04:24 AM
edit config array - by El Forum - 09-02-2009, 07:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB