Welcome Guest, Not a member yet? Register   Sign In
make a database call from index.php ???
#6

[eluser]coffeeandcode[/eluser]
[quote author="Gewa" date="1279813198"]then one thing. is it possible in index.php define a config variable, or a constant which I can acess in the controller?
What would be the best for this?
I need to pass somehow the web-site alias , then to make a check...[/quote]

I use the same WEBROOT, IMG, CSS, etc constants regardless of which framework I'm working with (keeps things consistent if I need to change frameworks), and with CI I define them at the top of index.php. It works great :-)


Messages In This Thread
make a database call from index.php ??? - by El Forum - 07-22-2010, 02:26 AM
make a database call from index.php ??? - by El Forum - 07-22-2010, 04:08 AM
make a database call from index.php ??? - by El Forum - 07-22-2010, 04:38 AM
make a database call from index.php ??? - by El Forum - 07-22-2010, 04:39 AM
make a database call from index.php ??? - by El Forum - 07-22-2010, 09:03 AM
make a database call from index.php ??? - by El Forum - 07-22-2010, 01:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB