常用cakephp功能--隨手摘記

1.   controller需要調用來自不同model中的數據時,在controller文件中加上: var $users = array(‘Post’, ‘User’);     2.   model文件對應的db不存在 : var $useTable = false;       同時,改變model對應的表名 : var $useTable = ‘some_table’;     3. 
相關文章
相關標籤/搜索