Welcome Guest, Not a member yet? Register   Sign In
Call to undefined method CI_Loader::spark()
#1

[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:Confusedpark() in /home/content/41/12636841/html/application/controllers/auth.php on line 11

Please help with this issue ASAP here is the link to gets the error
http://www.biipitdev.com/auth/oauth/facebook
#2

[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:Confusedpark()) and needs to be located in application/core/MY_Loader.php
#3

[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




Theme © iAndrew 2016 - Forum software by © MyBB