Created
January 26, 2015 19:01
-
-
Save sdevore/bc973ddf719467d828da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // in a model | |
if (empty($this->_modelWithCustomSource)) { | |
App::import('Model', 'MyPlugin.MyPluginModel'); | |
$this->_modelWithCustomSource = new MyPluginModel(); | |
$this->_modelWithCustomSource->useDbConfig; // is an instance of the datasouce | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment