Phalcon Framework 3.3.2

Phalcon\Mvc\Dispatcher\Exception: Modules\Frontend\Controllers\Win8newsController handler class cannot be loaded

D:\xampp55\htdocs\newopen2018\public\index.php (101)
#0Phalcon\Mvc\Dispatcher->_throwDispatchException(Modules\Frontend\Controllers\Win8newsController handler class cannot be loaded, 2)
#1Phalcon\Dispatcher->dispatch()
#2Phalcon\Mvc\Application->handle()
D:\xampp55\htdocs\newopen2018\public\index.php (101)
<?php
 
ini_set('date.timezone','Asia/Shanghai');
 
error_reporting(E_ALL);
(new \Phalcon\Debug())->listen();//開啟調試監聽
 
 
define('BASE_PATH', dirname(__DIR__));
define('APP_PATH', BASE_PATH . '/app');
 
use Phalcon\Loader;
use Phalcon\Mvc\Router;
use Phalcon\DI\FactoryDefault;
use Phalcon\Mvc\Application as BaseApplication;
use Phalcon\Mvc\Url as UrlResolver;
use Phalcon\Session\Adapter\Files as SessionAdapter;
use Phalcon\Mvc\Model\Metadata\Memory as MetaDataAdapter;
 
class Application extends BaseApplication
{
    /**
     * Register the services here to make them general or register in the ModuleDefinition to make them module-specific
     */
    protected function registerServices()
    {
 
        $di = new FactoryDefault();
        $di->setShared('config', function () {
            return include APP_PATH . "/config/config.php";
        });
        
        $di->setShared('url', function () {
            $config = $this->getConfig();
            $url = new UrlResolver();
            $url->setBaseUri($config->application->baseUri);
            return $url;
        });
 
 
 
        /**
        * If the configuration specify the use of metadata adapter use it or use memory otherwise
        */
        $di->setShared('modelsMetadata', function () {
            return new MetaDataAdapter();
        });
        
 
      
        include APP_PATH . '/config/router.php';
 
        /**
        * Include Autoloader
        */
        $config = $di->getConfig();
        include APP_PATH . '/config/loader.php';
  
        // Registering a router
        $di->set('router', function () {
            return include APP_PATH . "/config/router.php";
        });
 
 
 
        $di->set('cookies', function () {
            $cookies = new \Phalcon\Http\Response\Cookies();
            $cookies->useEncryption(false);//不加密
            return $cookies;
        });
 
 
        $di->setShared('session', function () {
            /*$session = new SessionAdapter();
            $session->start();*/
            $session = new \Services\SessionSrv(array('lifetime'=>3600,'prefix'=>'open','sname'=>'open_sess'));
            $session->start();
            return $session;
        });
 
        $this->setDI($di);
    }
 
    public function main()
    {
 
        $this->registerServices();
 
        // Register the installed modules
        $this->registerModules([
            'frontend' => [
                'className' => 'Modules\Frontend\Module',
                'path'      => APP_PATH.'/modules/frontend/Module.php'
            ],
            'backend'  => [
                'className' => 'Modules\Backend\Module',
                'path'      =>  APP_PATH.'/modules/backend/Module.php'
            ]
        ]);
 
        echo $this->handle()->getContent();
    }
}
 
$application = new Application();
$application->main();
#3Application->main()
D:\xampp55\htdocs\newopen2018\public\index.php (106)
<?php
 
ini_set('date.timezone','Asia/Shanghai');
 
error_reporting(E_ALL);
(new \Phalcon\Debug())->listen();//開啟調試監聽
 
 
define('BASE_PATH', dirname(__DIR__));
define('APP_PATH', BASE_PATH . '/app');
 
use Phalcon\Loader;
use Phalcon\Mvc\Router;
use Phalcon\DI\FactoryDefault;
use Phalcon\Mvc\Application as BaseApplication;
use Phalcon\Mvc\Url as UrlResolver;
use Phalcon\Session\Adapter\Files as SessionAdapter;
use Phalcon\Mvc\Model\Metadata\Memory as MetaDataAdapter;
 
class Application extends BaseApplication
{
    /**
     * Register the services here to make them general or register in the ModuleDefinition to make them module-specific
     */
    protected function registerServices()
    {
 
        $di = new FactoryDefault();
        $di->setShared('config', function () {
            return include APP_PATH . "/config/config.php";
        });
        
        $di->setShared('url', function () {
            $config = $this->getConfig();
            $url = new UrlResolver();
            $url->setBaseUri($config->application->baseUri);
            return $url;
        });
 
 
 
        /**
        * If the configuration specify the use of metadata adapter use it or use memory otherwise
        */
        $di->setShared('modelsMetadata', function () {
            return new MetaDataAdapter();
        });
        
 
      
        include APP_PATH . '/config/router.php';
 
        /**
        * Include Autoloader
        */
        $config = $di->getConfig();
        include APP_PATH . '/config/loader.php';
  
        // Registering a router
        $di->set('router', function () {
            return include APP_PATH . "/config/router.php";
        });
 
 
 
        $di->set('cookies', function () {
            $cookies = new \Phalcon\Http\Response\Cookies();
            $cookies->useEncryption(false);//不加密
            return $cookies;
        });
 
 
        $di->setShared('session', function () {
            /*$session = new SessionAdapter();
            $session->start();*/
            $session = new \Services\SessionSrv(array('lifetime'=>3600,'prefix'=>'open','sname'=>'open_sess'));
            $session->start();
            return $session;
        });
 
        $this->setDI($di);
    }
 
    public function main()
    {
 
        $this->registerServices();
 
        // Register the installed modules
        $this->registerModules([
            'frontend' => [
                'className' => 'Modules\Frontend\Module',
                'path'      => APP_PATH.'/modules/frontend/Module.php'
            ],
            'backend'  => [
                'className' => 'Modules\Backend\Module',
                'path'      =>  APP_PATH.'/modules/backend/Module.php'
            ]
        ]);
 
        echo $this->handle()->getContent();
    }
}
 
$application = new Application();
$application->main();
KeyValue
_url/win8news/64.html
KeyValue
REDIRECT_REDIRECT_MIBDIRSD:/xampp/php/extras/mibs
REDIRECT_REDIRECT_MYSQL_HOME\xampp\mysql\bin
REDIRECT_REDIRECT_OPENSSL_CONFD:/xampp/apache/bin/openssl.cnf
REDIRECT_REDIRECT_PHP_PEAR_SYSCONF_DIR\xampp\php
REDIRECT_REDIRECT_PHPRC\xampp\php
REDIRECT_REDIRECT_TMP\xampp\tmp
REDIRECT_REDIRECT_STATUS200
REDIRECT_MIBDIRSD:/xampp/php/extras/mibs
REDIRECT_MYSQL_HOME\xampp\mysql\bin
REDIRECT_OPENSSL_CONFD:/xampp/apache/bin/openssl.cnf
REDIRECT_PHP_PEAR_SYSCONF_DIR\xampp\php
REDIRECT_PHPRC\xampp\php
REDIRECT_TMP\xampp\tmp
REDIRECT_STATUS200
MIBDIRSD:/xampp/php/extras/mibs
MYSQL_HOME\xampp\mysql\bin
OPENSSL_CONFD:/xampp/apache/bin/openssl.cnf
PHP_PEAR_SYSCONF_DIR\xampp\php
PHPRC\xampp\php
TMP\xampp\tmp
HTTP_USER_AGENTOpera/9.27 (Windows NT 5.2; U; zh-cn)
HTTP_HOSTwww.salt-c-art.com
HTTP_ACCEPT*/*
HTTP_REFERERhttp://www.baidu.com/search/spider.htm
PATHC:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;
SystemRootC:\Windows
COMSPECC:\Windows\system32\cmd.exe
PATHEXT.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIRC:\Windows
SERVER_SIGNATURE<address>Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.5.38 Server at www.salt-c-art.com Port 80</address>\n
SERVER_SOFTWAREApache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.5.38
SERVER_NAMEwww.salt-c-art.com
SERVER_ADDR120.25.90.160
SERVER_PORT80
REMOTE_ADDR107.164.230.42
DOCUMENT_ROOTD:/xampp55/htdocs/newopen2018
REQUEST_SCHEMEhttp
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOTD:/xampp55/htdocs/newopen2018
SERVER_ADMINwebmaster@dummy-host.phalco.domain
SCRIPT_FILENAMED:/xampp55/htdocs/newopen2018/public/index.php
REMOTE_PORT64390
REDIRECT_URL/public/win8news/64.html
REDIRECT_QUERY_STRING_url=/win8news/64.html
GATEWAY_INTERFACECGI/1.1
SERVER_PROTOCOLHTTP/1.1
REQUEST_METHODGET
QUERY_STRING_url=/win8news/64.html
REQUEST_URI/win8news/64.html
SCRIPT_NAME/public/index.php
PHP_SELF/public/index.php
REQUEST_TIME_FLOAT1526059039.752
REQUEST_TIME1526059039
#Path
0D:\xampp55\htdocs\newopen2018\public\index.php
1D:\xampp55\htdocs\newopen2018\app\config\router.php
2D:\xampp55\htdocs\newopen2018\app\config\config.php
3D:\xampp55\htdocs\newopen2018\app\config\loader.php
4D:\xampp55\htdocs\newopen2018\vendor\phpexcel\lib\PHPExcel\PHPExcel.php
5D:\xampp55\htdocs\newopen2018\vendor\phpexcel\lib\PHPExcel\PHPExcel\Autoloader.php
6D:\xampp55\htdocs\newopen2018\vendor\phpexcel\lib\PHPExcel\PHPExcel\Shared\String.php
7D:\xampp55\htdocs\newopen2018\app\modules\frontend\Module.php
Memory
Usage524288