FreebaseSource Plugin
, (*1)
CakePHP FreebaseSource Plugin with DataSource for http://www.freebase.com/, (*2)
Installation
Step 2: Clone or download to Plugin/FreebaseSource
cd my_cake_app/app git://github.com/imsamurai/cakephp-freebasesource-datasource.git Plugin/FreebaseSource, (*3)
or if you use git add as submodule:, (*4)
cd my_cake_app
git submodule add "git://github.com/imsamurai/cakephp-freebasesource-datasource.git" "app/Plugin/FreebaseSource"
then update submodules:, (*5)
git submodule init
git submodule update
Step 3: Add your configuration to database.php
and set it to the model
:: database.php ::
public $freebase = array(
'datasource' => 'FreebaseSource.Http/FreebaseSource',
'host' => 'www.googleapis.com/freebase/v1',
'port' => 443
);
Then make model
:: Freebase.php ::
```php
public $useDbConfig = 'freebase';
public $useTable = '<desired api url ending, for ex: "search">';
### Step 4: Load plugin
:: bootstrap.php ::
```php
CakePlugin::load('HttpSource', array('bootstrap' => true, 'routes' => false));
CakePlugin::load('FreebaseSource');
Documentation
Please read HttpSource Plugin README, (*6)