简体   繁体   中英

CakePHP 2.9 + MongoDB Introduction

Am start connect to MongoDB with cake php. I have done cakephp2.2 with MongoDB but I need to connect to cakephp2.9 with MongoDB, I have complete all process and when and call to any controller it showing fatel error.

Error: Class 'String' not found
File: C:\xampp\htdocs\oncall\app\Plugin\Mongodb\Model\Datasource\MongodbSource.php
Line: 1476

好吧,您只需要在第1476行用CakeText替换String,因为在Cake 2.9中不推荐使用String类> https://api.cakephp.org/2.9/class-String.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM