logo
  • 教程列表
  • SO官方文檔
  • 從另一個資料來源例項化模型
    • 動態資料庫更改為模態
    • 例項化使用 Appuses
  1. StackOverflow 文件
  2. cakephp 教程
  3. 從另一個資料來源例項化模型
  4. 例項化使用 Appuses

例項化使用 Appuses

Created: November-22, 2018

App::uses('YourModel', 'Model');
$model_1 = new YourModel(array('ds' => 'default'));
$model_2 = new YourModel(array('ds' => 'database2'));
  • 動態資料庫更改為模態

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明