Welcome Guest, Not a member yet? Register   Sign In
Where is the best place to include inc file??
#2

[eluser]OKIEWARDOYO[/eluser]
So here is my story,
i'm creating an application like structure below

my_cms/
application/
system/
inc/

i have placed options.inc.php in inc folder
this file contain main array of all my_cms configuration

<?
$options = array(
'status_index' => 0,
'status_read' => 1,
'status_write => 2,
);

?>

on index.php, i have define a path for this file,
define('INCPATH', CURRDIR.'inc/');

Now, where should i put this include "options.inc.php" so i can make a global variable for $options from every function in model or controller page??

should i include this file on index.php?


Messages In This Thread
Where is the best place to include inc file?? - by El Forum - 06-22-2012, 03:22 PM
Where is the best place to include inc file?? - by El Forum - 06-22-2012, 03:46 PM
Where is the best place to include inc file?? - by El Forum - 06-22-2012, 10:14 PM
Where is the best place to include inc file?? - by El Forum - 06-23-2012, 03:46 AM
Where is the best place to include inc file?? - by El Forum - 06-23-2012, 09:35 AM
Where is the best place to include inc file?? - by El Forum - 06-23-2012, 11:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB