class not found after deployed to remote host

i just transferred entire basic site to remote host - updated db config, nothing else, and what is working on localhost is giving “class ‘app\models\sale’ not found” error on remote.

Sorry for basic question but it feels like paths on server must be different, but i just cant see what specifically.

The top of the specific file its complaining about is:


namespace app\models;

use Yii;

use yii\base\Model;

use yii\data\ActiveDataProvider;

use yii\data\ArrayDataProvider;

use app\models\sale;


 * SaleSearch represents the model behind the search form about `app\models\sale`.


class SaleSearch extends sale


and that last line is where its highlighting the error.

I have localhost on one side, working, other side remote giving this error and im puzzled - im sure its something silly


Remote host maybe a linux?

And local dev machine a windows?

Try writing case sensitive…

And change it to:

use app\models\Sale;


class SaleSearch extends Sale

And ensure that the model file is named:



thank you i literally just thought of that - i changed the file from capital Sale.php to lower case sale.php and it fixed it - i need to remember this whenever i deploy :unsure:

thanks for such quick reply