php - CakePHP saving data from Google Analytics -
i've been working plugin: http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/ it's on head.
under analytic.php seems usetable set false, however, when it's true throws error. new cake , cake plugins, maybe interacting wrong way.
i'd save dimensions , metrics being pulled database using cake. direction appreciated.
the model has usetable = false using datasource data. cant set true, , wont work other way. if want save create new model db table normal , following.
in new model...
$data = classregistry::init('analiticsmodel')->findmethod();
then manipulate how need
$this->save($data);
its in db... can $this->find()
<-- normal cake stuff on new model
Comments
Post a Comment