[eluser]tim042829[/eluser]
I'm stepping thru a CI tutorial via
Professional CodeIgnitor (Wrox/Meyer)
I've created a directory call
resources and and file called
std.php
in the resources folder.
I would like
resources/std.php to be loaded as soon as is possible and
correct.
In index.php, following the
DEFINE APPLICATION CONSTANTS section,
I added the following lines:
Code:
define('RESOURCEPATH', $resource_folder.'/'); // @Tim
require_once RESOURCEPATH.'/std'.EXT; // @Tim
I would welcome
1)URLs to documentation on the issues regarding loading of resources
for CI
2)comments on the correctness of the code above.
thanks
tim