cakephp-plugin app_description
CakePHP Plugin
tektoh/app_description
CakePHP Plugin
- Sunday, October 12, 2014
- by tektoh
- Repository
- 3 Watchers
- 0 Stars
- 576 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
アプリのストアページから情報を取ってくるCakephp のプラグイン
, (*1)
使い方
database.php
class DATABASE_CONFIG {
public $appDescription = [
'datasource' => 'AppDescription.AppDescriptionSource',
];
Model
class Test extends AppModel
{
public $useDbConfig = 'appDescription';
public $useTable = false;
}
Controller
class TestsController extends AppController {
public $uses = [
'Test',
];
public function index() {
$test = $this->Test->find('first', [
'conditions' => [
'url' => 'https://itunes.apple.com/jp/app/youtube/id544007664?mt=8'
]
]);
debug($test);
}
}