Welcome Guest, Not a member yet? Register   Sign In
Load sequence - user lib
#1

[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
#2

[eluser]InsiteFX[/eluser]
Code:
define('RESOURCEPATH', $resource_folder.'/'); // @Tim
require_once RESOURCEPATH.'std'.EXT; // @Tim

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB