Welcome Guest, Not a member yet? Register   Sign In
FTP (and other class) Default Config Files
#1

[eluser]adamfairholm[/eluser]
Hey everyone,

For a few of the CI classes, there is a variant of this line in the documentation:

Quote:Setting FTP Preferences in a Config File

If you prefer you can store your FTP preferences in a config file. Simply create a new file called the ftp.php, add the $config array in that file. Then save the file at config/ftp.php and it will be used automatically.

I was wondering if anyone knew if there is anywhere in the code where this specifically happens and these variables from the config file are initialized. I can't seem to find anything in the FTP, Loader or Config classes.

I know that there are a few classes that have this (I believe the Email class has one as well). I'm writing a class that would be great to use this feature with, but I'm at a loss of how to make that happen.

Any pointers would be appreciated!


Messages In This Thread
FTP (and other class) Default Config Files - by El Forum - 05-25-2009, 09:34 PM
FTP (and other class) Default Config Files - by El Forum - 05-26-2009, 02:39 AM
FTP (and other class) Default Config Files - by El Forum - 05-26-2009, 02:51 AM
FTP (and other class) Default Config Files - by El Forum - 05-26-2009, 07:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB