Caker, Web developer,Beijing,China.

My projects

Undefined class ‘String’ when use the console of cakephp

today ,I try to learn the console of cakephp , when i ran ‘cake schema generate ‘command, i got a undefined the `String` class ,and i try to get answer to #cakephp on IRC.solution:
adding this line :

uses('String');

at the top of all classes in cake\libs\model\datasources\dbo_source.php ,works fine!!

Tags:

Filed under:Uncategorized

Leave a Reply