Welcome Guest, Not a member yet? Register   Sign In
php include with CI
#4

[eluser]bradym[/eluser]
Depends on what the include file is for. At work we've got a standard tracking script we use on all of our sites, and it contains functionality that needs to work everywhere on the site, so I put the include as the first line of index.php. Since every page request on a CI site goes through index.php, this works well.

If it's code that you need in one specific location in the code, ie: controller, model, etc, then include it there.


Messages In This Thread
php include with CI - by El Forum - 05-24-2008, 07:59 PM
php include with CI - by El Forum - 05-24-2008, 08:01 PM
php include with CI - by El Forum - 05-24-2008, 08:20 PM
php include with CI - by El Forum - 05-24-2008, 08:43 PM
php include with CI - by El Forum - 05-24-2008, 08:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB