tektoh/app_description

CakePHP Plugin

Installs: 584

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Open Issues: 0

Type:cakephp-plugin

0.0.1 2014-10-12 10:24 UTC

This package is not auto-updated.

Last update: 2024-12-25 05:17:03 UTC


README

Build Status

使い方

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);
    }
}