Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在自动加载文件中添加一个模型,如下所示:
$autoload['model'] = array('themodel');
我想知道如何在控制器中使用它,因为当我编写 $this 时,它会获取当前的控制器功能
谢谢,
采用$this->themodel->some_function()
$this->themodel->some_function()
我建议你在 CodeIgniter 中对模型做功课。