Call to undefined method CI_Loader::spark() |
[eluser]Unknown[/eluser]
I try to integrate oauth-facebook in my application.. recently reviewing this site http://getsparks.org/ and following all the manual steps to install sparks... can't.. here is my directory tree. root sparks oauth 0.0.2 config language libraries spark.info README.md //autoload $autoload['sparks'] = array('oauth/0.0.2'); //controller class Auth extends CI_Controller { public function oauth($providername) { $key=config_item($providername . '_key'); $secret=config_item($providername . '_secret'); $this->load->helper('url'); $this->load->spark('oauth/0.0.2'); When I try I gets this message: Fatal error: Call to undefined method CI_Loader: ![]() Please help with this issue ASAP here is the link to gets the error http://www.biipitdev.com/auth/oauth/facebook
[eluser]CroNiX[/eluser]
Are you sure that you installed the sparks package manager properly (not the oauth)? http://getsparks.org/install It requires a special loader (MY_Loader.php) which contains that missing method your error is complaining about (Call to undefined method CI_Loader: ![]()
[eluser]Unknown[/eluser]
Thank you, certainly spark wasn't installed, by the way I tested different sparks and the only that works for me is $this->load->spark('oauth2-0.4.0'); Thank You by your help |
Welcome Guest, Not a member yet? Register Sign In |