我要寫一個外掛,在controller中呼叫本外掛的Model下的View。
寫法:
$Comment = D('Addons://ArticleComment/Model/CommentView');
但系統報錯:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dlb.ot_comment_view' doesn't exist
寫法:
$Comment = D('Addons://ArticleComment/Model/CommentView');
但系統報錯:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dlb.ot_comment_view' doesn't exist
回覆
看D方法怎麼找到檢視的