当前位置: 动力学知识库 > 问答 > 编程问答 >

cakephp : Table for model was not found in datasource default

问题描述:

I don't understand, i put manually my table in my cakephp model :

<?php

class Configs extends AppModel {

public $useTable = 'data_configs';

}

I have the error Table data_configs for model Configs was not found in datasource default.

If i change my table for a other table in my mysql, it's working... what is the problem ? My table exists and not empty.

网友答案:

Try clear Cake's cache:

$ cd app/tmp/cache
$ find . -type f -delete
分享给朋友:
您可能感兴趣的文章:
随机阅读: