Phalcon Framework 4.1.2

Phalcon\Mvc\Dispatcher\Exception: Multiple\Frontend\Controllers\AController handler class cannot be loaded

/home/ebooking/sites/erobooking.com/public/index.php (152)
#0Phalcon\Mvc\Dispatcher->throwDispatchException(Multiple\Frontend\Controllers\AController handler class cannot be loaded, 2)
#1Phalcon\Dispatcher\AbstractDispatcher->dispatch()
#2Phalcon\Mvc\Application->handle(/a)
/home/ebooking/sites/erobooking.com/public/index.php (152)
<?php
error_reporting(1);
mb_internal_encoding('utf-8');
ini_set("display_errors", "1");
 
define("EMAIL_DOMAIN", "http://sualcavab.az/msend.php");
 
class Application extends \Phalcon\Mvc\Application
{
    /**
     * Register the services here to make them general or register in the ModuleDefinition to make them module-specific
     */
    protected function _registerServices()
    {
        $di = new \Phalcon\DI\FactoryDefault();
 
        $loader = new \Phalcon\Loader();
 
        /**
         * We're a registering a set of directories taken from the configuration file
         */
        $loader->registerDirs(
            array(
                __DIR__ . '/../apps/library/'
            )
        )->register();
 
        define('DEBUG', true);
        if(DEBUG) {
            error_reporting(1);
            (new Phalcon\Debug)->listen();
        }
 
        // DB connection
        $di->set('db', function () {
            return new \Phalcon\Db\Adapter\Pdo\Mysql(array(
                "host" => "localhost",
                "username" => "ebooking",
                "password" => "ebooking",
                "dbname" => "ebooking",
                "options" => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8')
            ));
        });
 
 
 
        //Registering a router
        $di->set('router', function(){
 
            $router = new \Phalcon\Mvc\Router();
 
            $router->setDefaultModule("frontend");
            $router->setDefaultController("index");
            $router->setDefaultAction("index");
            $router->removeExtraSlashes(true);
 
            $router->add('/:controller/:action/:int', array(
                'controller' => 1,
                'action' => 2,
                'id' => 3,
            ));
 
            $router->add('/:controller/:action', array(
                'controller' => 1,
                'action' => 2,
            ));
 
            $router->add('/:controller', array(
                'controller' => 1,
            ));
 
            $router->add('/{language:[a-z]{2}}/:controller/:action/:int/:int', array(
                'controller' => 2,
                'action' => 3,
                'lang'   => 1,
                'id'    => 4,
                'page'   => 5,
            ));
 
 
            $router->add("/{language:[a-z]{2}}/:params", array(
                'controller' => 'index',
                'action' => 'index',
                'lang'   => 1,
                'keyword'   => 2,
            ));
 
            $router->add('/{language:[a-z]{2}}/:controller/:action/:int', array(
                'controller' => 2,
                'action' => 3,
                'id'    => 4,
                'lang'   => 1,
            ));
 
            $router->add('/{language:[a-z]{2}}/:controller/:action', array(
                'controller' => 2,
                'action' => 3,
                'lang'   => 1,
            ));
 
            $router->add("/{language:[a-z]{2}}/:controller", array(
                'controller' => 2,
                'lang'   => 1,
            ));
 
            $router->add("/{language:[a-z]{2}}/view/:int", array(
                'controller' => 'products',
                'action' => 'view',
                'id' => 2,
                'lang'   => 1,
            ));
 
            $router->add("/{language:[a-z]{2}}/view/:int/:params", array(
                'controller' => 'products',
                'action' => 'view',
                'id' => 2,
                'lang'   => 1,
            ));
 
            $router->add('/{language:[a-z]{2}}/news/:int/:params', array(
                'controller'  => "news",
                'action'    => "view",
                'lang'          => 1,
                'id'      => 2,
                'slug'      => 3,
            ));
 
            $router->add("/{language:[a-z]{2}}", array(
                'lang'   => 1,
            ));
 
            return $router;
 
        });
 
        $this->setDI($di);
    }
 
    public function main()
    {
        $this->_registerServices();
 
        //Register the installed modules
        $this->registerModules(array(
            'frontend' => array(
                'className' => 'Multiple\Frontend\Module',
                'path' => '../apps/frontend/Module.php'
            )
        ));
 
        $request = new Phalcon\Http\Request();
        echo $this->handle($request->getURI())->getContent();
    }
 
}
 
$application = new Application();
$application->main();
#3Application->main()
/home/ebooking/sites/erobooking.com/public/index.php (158)
<?php
error_reporting(1);
mb_internal_encoding('utf-8');
ini_set("display_errors", "1");
 
define("EMAIL_DOMAIN", "http://sualcavab.az/msend.php");
 
class Application extends \Phalcon\Mvc\Application
{
    /**
     * Register the services here to make them general or register in the ModuleDefinition to make them module-specific
     */
    protected function _registerServices()
    {
        $di = new \Phalcon\DI\FactoryDefault();
 
        $loader = new \Phalcon\Loader();
 
        /**
         * We're a registering a set of directories taken from the configuration file
         */
        $loader->registerDirs(
            array(
                __DIR__ . '/../apps/library/'
            )
        )->register();
 
        define('DEBUG', true);
        if(DEBUG) {
            error_reporting(1);
            (new Phalcon\Debug)->listen();
        }
 
        // DB connection
        $di->set('db', function () {
            return new \Phalcon\Db\Adapter\Pdo\Mysql(array(
                "host" => "localhost",
                "username" => "ebooking",
                "password" => "ebooking",
                "dbname" => "ebooking",
                "options" => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8')
            ));
        });
 
 
 
        //Registering a router
        $di->set('router', function(){
 
            $router = new \Phalcon\Mvc\Router();
 
            $router->setDefaultModule("frontend");
            $router->setDefaultController("index");
            $router->setDefaultAction("index");
            $router->removeExtraSlashes(true);
 
            $router->add('/:controller/:action/:int', array(
                'controller' => 1,
                'action' => 2,
                'id' => 3,
            ));
 
            $router->add('/:controller/:action', array(
                'controller' => 1,
                'action' => 2,
            ));
 
            $router->add('/:controller', array(
                'controller' => 1,
            ));
 
            $router->add('/{language:[a-z]{2}}/:controller/:action/:int/:int', array(
                'controller' => 2,
                'action' => 3,
                'lang'   => 1,
                'id'    => 4,
                'page'   => 5,
            ));
 
 
            $router->add("/{language:[a-z]{2}}/:params", array(
                'controller' => 'index',
                'action' => 'index',
                'lang'   => 1,
                'keyword'   => 2,
            ));
 
            $router->add('/{language:[a-z]{2}}/:controller/:action/:int', array(
                'controller' => 2,
                'action' => 3,
                'id'    => 4,
                'lang'   => 1,
            ));
 
            $router->add('/{language:[a-z]{2}}/:controller/:action', array(
                'controller' => 2,
                'action' => 3,
                'lang'   => 1,
            ));
 
            $router->add("/{language:[a-z]{2}}/:controller", array(
                'controller' => 2,
                'lang'   => 1,
            ));
 
            $router->add("/{language:[a-z]{2}}/view/:int", array(
                'controller' => 'products',
                'action' => 'view',
                'id' => 2,
                'lang'   => 1,
            ));
 
            $router->add("/{language:[a-z]{2}}/view/:int/:params", array(
                'controller' => 'products',
                'action' => 'view',
                'id' => 2,
                'lang'   => 1,
            ));
 
            $router->add('/{language:[a-z]{2}}/news/:int/:params', array(
                'controller'  => "news",
                'action'    => "view",
                'lang'          => 1,
                'id'      => 2,
                'slug'      => 3,
            ));
 
            $router->add("/{language:[a-z]{2}}", array(
                'lang'   => 1,
            ));
 
            return $router;
 
        });
 
        $this->setDI($di);
    }
 
    public function main()
    {
        $this->_registerServices();
 
        //Register the installed modules
        $this->registerModules(array(
            'frontend' => array(
                'className' => 'Multiple\Frontend\Module',
                'path' => '../apps/frontend/Module.php'
            )
        ));
 
        $request = new Phalcon\Http\Request();
        echo $this->handle($request->getURI())->getContent();
    }
 
}
 
$application = new Application();
$application->main();
KeyValue
_url/a
KeyValue
USERwww-data
HOME/var/www
HTTP_CF_IPCOUNTRYUS
HTTP_CDN_LOOPcloudflare
HTTP_CF_CONNECTING_IP18.118.16.247
HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_ACCEPT*/*
HTTP_CF_VISITOR{"scheme":"http"}
HTTP_X_FORWARDED_PROTOhttp
HTTP_CF_RAY884da0612dac620c-ORD
HTTP_X_FORWARDED_FOR18.118.16.247
HTTP_ACCEPT_ENCODINGgzip
HTTP_CONNECTIONKeep-Alive
HTTP_HOSTbutashop.com
REDIRECT_STATUS200
SERVER_NAMEbutashop.com
SERVER_PORT80
SERVER_ADDR142.132.184.221
REMOTE_PORT27600
REMOTE_ADDR172.69.7.179
SERVER_SOFTWAREnginx/1.14.0
GATEWAY_INTERFACECGI/1.1
REQUEST_SCHEMEhttp
SERVER_PROTOCOLHTTP/1.1
DOCUMENT_ROOT/home/ebooking/sites/erobooking.com/public
DOCUMENT_URI/index.php
REQUEST_URI/a
SCRIPT_NAME/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHODGET
QUERY_STRING_url=/a&
SCRIPT_FILENAME/home/ebooking/sites/erobooking.com/public/index.php
PATH_INFO
FCGI_ROLERESPONDER
PHP_SELF/index.php
REQUEST_TIME_FLOAT1715886192.8977
REQUEST_TIME1715886192
#Path
0/home/ebooking/sites/erobooking.com/public/index.php
1/home/ebooking/sites/erobooking.com/apps/frontend/Module.php
2/home/ebooking/sites/erobooking.com/apps/language/az.php
3/home/ebooking/sites/erobooking.com/apps/library/Acl.php
Memory
Usage2097152