integrate gapi in codeigniter |
[eluser]fefe[/eluser]
Hello Is anybody has successfully integrated the gapi as library in codeigniter.I'm trying to do that but as I debuge it the variable are not passed to the library in my controller i'm initilaizing the library Code: $this->load->library( 'gapi', array( 'email' => "email",'password' => "pass" )); than normally the gapis class construct method shoul pick up the this 2 variables but actually doesn't happening.
[eluser]fefe[/eluser]
hi! I found a viable solution to the problem. After googling a while I was finding the following post.Is not hundred% what I want but whit a bit of hard-coding you can achieve results. http://somethingstatic.com/google-analyt...deigniter/
[eluser]Alface[/eluser]
Rename the file gapi.class.php to gapi.php Rename the class form "gapi" to "Gapi" Replace: Code: public function __construct($email, $password, $token=null) Code: public function __construct($params) It is loading with no errors here.
[eluser]Alface[/eluser]
And I remove this 2 lines. 281 and 282 Code: //$account_root_parameters['startDate'] = strval($google_results->startDate); |
Welcome Guest, Not a member yet? Register Sign In |