Welcome Guest, Not a member yet? Register   Sign In
help please!!!!
#1

[eluser]mashary[/eluser]
i am newbie...

i have collection of array in a file, such as

Code:
$definisi_agama  = array(
    0 => "Kristen",
    1 => "Khatolik",
    2 => "Islam",
    3 => "Budha",
    4 => "Hindu",
    5 => "Konghucu"
);

i need this file loaded automatically, where should i put this file?


sorry poor english
#2

[eluser]tyuwan[/eluser]
In the controller class? I don't get the purpose of this.
#3

[eluser]Sarfaraz Momin[/eluser]
If the contents of the array are static. You can set them as config items in the config file. Please read the userguide on how to setup and use a custom config file. You can autoload a config file using the autoload.php file in the config folder.

Config Class
#4

[eluser]mashary[/eluser]
:-)
ah thanks Sarfaraz Momin




Theme © iAndrew 2016 - Forum software by © MyBB