Welcome Guest, Not a member yet? Register   Sign In
Passing $params to a spark?
#1

[eluser]talkingnews[/eluser]
I'm loading sparks into PyroCMS, a CMS built onto CI (not that this matters).

So far, simple sparks have been a doddle and all went well.

Now I'm using some sparks from jimdoescode, I'd hit a problem as $params need to get passed.

All his instructions (for example http://getsparks.org/packages/dropbox/ve.../HEAD/show) say:

Quote:...load the library like this:
Code:
$this->load->library('dropbox', $params);

You can also use this library with Sparks. Simply install using sparks then call.
Code:
$this->load->spark('dropbox/1.0.0');

If I use
Code:
$this->load->spark('dropbox/1.2.2');
then of course, I get
Call to a member function get_request_token() on a non-object ...
as the $params (which is an array of credential) aren't getting passed.

If I try
Code:
$this->load->spark('dropbox/1.2.2', $params);
Could not autoload object of type 'key' (xxxx ...
because it seems you can't pass $params like that.

Been through the spark docs too, and unless I'm missing something, I don't see how I'd do this. Any suggestions? Thanks!


Messages In This Thread
Passing $params to a spark? - by El Forum - 10-13-2012, 03:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB