Welcome Guest, Not a member yet? Register   Sign In
Correct place to put define() statements
#1

[eluser]beatryder[/eluser]
Hello, I was wondering if anyone would be able to tell me where the best place to put my global defines?

See I would like to do something like this:
Code:
//In some place
define(ALL_RECORDS,-1);

Code:
//in any other file
$this->my_model->get(ALL_RECORDS);

I figure I could edit the index.php, but something tells me that is a bad idea? Can I put these into a one of my custom configs?
#2

[eluser]mmm_broccoli[/eluser]
While not beautiful, you can get away with putting your define()'s in config.php
#3

[eluser]beatryder[/eluser]
Sweet jebus that was quick...

I am going to do that for now, only I am going to put them into my own custom.php config file




Theme © iAndrew 2016 - Forum software by © MyBB