---
title: "【PHP】Codeigniter : Unable to locate the model you have specified"
author: "sw1982"
date: "2013-12-10T11:36:22Z"
tags: []
categories: ["编程语言"]
slug: "php-codeigniter-unable-to-locate-the-model-you-have-specified"
draft: false
lastmod: "2013-12-10T11:36:22Z"
id: 1987620
url: "https://sw1982.iteye.com/blog/1987620"
---

产生这个问题一般两个原因：

1\. google到的结果，类名文件必须小写。 可参考http://codeigniter.org.cn/forums/thread-9941-1-1.html

 

2\. 这个是google了一圈都没说到的，linux目录访问权限导致！

      排除命名问题之后，请ls查看目录权限，是否对www-data用户有读写权限

 

```
Unable to locate the model you have specified: some_model
```

 

![](http://dl2.iteye.com/upload/attachment/0092/0227/8bc34274-08b1-3f0f-b564-d286513650d7.png)