Passing $params to a spark? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Passing $params to a spark? (/showthread.php?tid=55188) |
Passing $params to a spark? - El Forum - 10-13-2012 [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/versions/HEAD/show) say: Quote:...load the library like this: If I use Code: $this->load->spark('dropbox/1.2.2'); 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); 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! |