Phalcon Framework 3.1.1

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

/home/melody.az/domains/melody.az/public/index.php (153)
#0Phalcon\Mvc\Dispatcher->_throwDispatchException(Multiple\Frontend\Controllers\ClubController handler class cannot be loaded, 2)
#1Phalcon\Dispatcher->_dispatch()
#2Phalcon\Dispatcher->dispatch()
#3Phalcon\Mvc\Application->handle()
/home/melody.az/domains/melody.az/public/index.php (153)
<?php
//exit("under construction");
/**
session_start();
if (!@$_COOKIE['PHPSESSID'])
    $_COOKIE['PHPSESSID'] = session_id();
 */
error_reporting(0);
ini_set("display_errors", "0");
 
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(E_ALL);
            (new Phalcon\Debug)->listen();
        }
 
 
        // DB connection
        $di->set('db', function () {
            return new \Phalcon\Db\Adapter\Pdo\Mysql(array(
                "host" => "localhost",
                "username" => "root",
                "password" => "Moxitoa1s2d3f4g5",
                "dbname" => "melody",
                "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('/dating/:controller/:action/:int', array(
                'module'        => 'dating',
                'controller'    => 1,
                'action'        => 2,
                'id'            => 3,
            ));
 
            $router->add('/dating/:controller/:action', array(
                'module'        => 'dating',
                'controller'    => 1,
                'action'        => 2,
            ));
 
            $router->add('/dating/:controller', array(
                'module'        => 'dating',
                'controller'    => 1,
            ));
 
            $router->add('/dating/profile/:int', array(
                'module'        => 'dating',
                'controller'    => 'profile',
                'id'            => 1,
            ));
 
            $router->add('/dating', array(
                'module'        => 'dating',
            ));
 
            $router->add('/partner/:controller/:action/:int', array(
                'module'        => 'partner',
                'controller'    => 1,
                'action'        => 2,
                'id'            => 3,
            ));
 
            $router->add('/partner/:controller/:action', array(
                'module'        => 'partner',
                'controller'    => 1,
                'action'        => 2,
            ));
 
            $router->add('/partner/:controller', array(
                'module'        => 'partner',
                'controller'    => 1,
            ));
 
            $router->add('/partner', array(
                'module'        => 'partner',
            ));
            $router->add('/partner/signup', array(
                'module'        => 'frontend',
                'controller'    => 'partner',
                'action'        => 'signup',
            ));
            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'
      ),
      'partner' => array(
        'className' => 'Multiple\Partner\Module',
        'path' => '../apps/partner/Module.php'
      ),
    ));
 
    echo $this->handle()->getContent();
  }
 
}
 
$application = new Application();
$application->main();
#4Application->main()
/home/melody.az/domains/melody.az/public/index.php (159)
<?php
//exit("under construction");
/**
session_start();
if (!@$_COOKIE['PHPSESSID'])
    $_COOKIE['PHPSESSID'] = session_id();
 */
error_reporting(0);
ini_set("display_errors", "0");
 
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(E_ALL);
            (new Phalcon\Debug)->listen();
        }
 
 
        // DB connection
        $di->set('db', function () {
            return new \Phalcon\Db\Adapter\Pdo\Mysql(array(
                "host" => "localhost",
                "username" => "root",
                "password" => "Moxitoa1s2d3f4g5",
                "dbname" => "melody",
                "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('/dating/:controller/:action/:int', array(
                'module'        => 'dating',
                'controller'    => 1,
                'action'        => 2,
                'id'            => 3,
            ));
 
            $router->add('/dating/:controller/:action', array(
                'module'        => 'dating',
                'controller'    => 1,
                'action'        => 2,
            ));
 
            $router->add('/dating/:controller', array(
                'module'        => 'dating',
                'controller'    => 1,
            ));
 
            $router->add('/dating/profile/:int', array(
                'module'        => 'dating',
                'controller'    => 'profile',
                'id'            => 1,
            ));
 
            $router->add('/dating', array(
                'module'        => 'dating',
            ));
 
            $router->add('/partner/:controller/:action/:int', array(
                'module'        => 'partner',
                'controller'    => 1,
                'action'        => 2,
                'id'            => 3,
            ));
 
            $router->add('/partner/:controller/:action', array(
                'module'        => 'partner',
                'controller'    => 1,
                'action'        => 2,
            ));
 
            $router->add('/partner/:controller', array(
                'module'        => 'partner',
                'controller'    => 1,
            ));
 
            $router->add('/partner', array(
                'module'        => 'partner',
            ));
            $router->add('/partner/signup', array(
                'module'        => 'frontend',
                'controller'    => 'partner',
                'action'        => 'signup',
            ));
            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'
      ),
      'partner' => array(
        'className' => 'Multiple\Partner\Module',
        'path' => '../apps/partner/Module.php'
      ),
    ));
 
    echo $this->handle()->getContent();
  }
 
}
 
$application = new Application();
$application->main();
KeyValue
_url/club/
pid11
homeQutu.az
KeyValue
USERwww-data
HOME/var/www
FCGI_ROLERESPONDER
SCRIPT_FILENAME/home/melody.az/domains/melody.az/public/index.php
QUERY_STRING_url=/club/&pid=11&home=Qutu.az
REQUEST_METHODGET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME/index.php
REQUEST_URI/club/?pid=11&home=Qutu.az
DOCUMENT_URI/index.php
DOCUMENT_ROOT/home/melody.az/domains/melody.az/public
SERVER_PROTOCOLHTTP/1.0
GATEWAY_INTERFACECGI/1.1
SERVER_SOFTWAREnginx/1.6.2
REMOTE_ADDR54.92.178.105
REMOTE_PORT35596
SERVER_ADDR46.17.40.168
SERVER_PORT80
SERVER_NAMEwww.melody.az
REDIRECT_STATUS200
HTTP_HOSTmelody.az
HTTP_ACCEPT_ENCODINGx-gzip, gzip, deflate
HTTP_USER_AGENTCCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
PHP_SELF/index.php
REQUEST_TIME_FLOAT1498559098.8948
REQUEST_TIME1498559098
#Path
0/home/melody.az/domains/melody.az/public/index.php
1/home/melody.az/domains/melody.az/apps/frontend/Module.php
2/home/melody.az/domains/melody.az/apps/library/Acl.php
Memory
Usage524288