We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Class not found on linux

I have a project working on windows, but when I put it on linux, that erro occurs.

Fatal error: Class 'Apponte\Repository\GroupsUsers' not found in /home/

<?php

namespace Apponte\Controllers;

use Phalcon\Mvc\Controller; use Phalcon\Mvc\Dispatcher; use Apponte\Repository\GroupsUsers;

class ControllerBase extends Controller {

protected function initialize() {
    $this->tag->prependTitle('Apponte | ');
    $signed = $this->auth->isUserSignedIn();

    if ($signed) {
        //carrega menu
        $result = GroupsUsers::query()    <<<<<<<<<<<<<<<<<<<<<<< error line


16.0k
Accepted
answer

make sure the files path and model name are exactly the same. Linux is case sensitive while windows is not.