Welcome Guest, Not a member yet? Register   Sign In
Accessing php file in controllers
#1

[eluser]Musaddiq Khan[/eluser]
Hello every body,
I m configuring authoriz.net in codeigniter. I've place the file in controllers folder as the path shows it.
Code:
\\localhost\wwwroot\furniture\application\controllers\anet_php_sdk
.
I'm accessing the files in controller located at root in controller folder which is working fine.
And also I need to access the same files in a subfolder in controllers like
Code:
\localhost\wwwroot\furniture\application\controllers\AdminArea\order
.
I've tried the following two options
Code:
require_once 'anet_php_sdk/AuthorizeNet.php';
Code:
require_once '../anet_php_sdk/AuthorizeNet.php';
but both the line generating errors.
Fatal error: require_once() [function.require]: Failed opening required 'anet_php_sdk/AuthorizeNet.php' (include_path='.;C:\\php\\pear').

Any help will be appriciated.
#2

[eluser]PravinS[/eluser]
Don't include files in controller, instead try using helpers.




Theme © iAndrew 2016 - Forum software by © MyBB