WeiPHP2.0 new module automatically jumps to the logon page

Source: Internet
Author: User
Under WeiPHP, an entry file is created and the relevant structure is automatically generated. The ingress file cannot be resolved automatically... under WeiPHP, the portal file is created automatically and the related structure is generated.
Entry File Code


   5.3.0 !');define('APP_DEBUG', true );define('BIND_MODULE','Manager');define('BUILD_CONTROLLER_LIST','Index,User,Pay,Log,JingJia,HongBao,Ads');define('BUILD_MODEL_LIST','User,Pay,Log,JingJia,HongBao,Ads');define ( 'APP_PATH', './Application/' );define ( 'RUNTIME_PATH', './Runtime/' );require './ThinkPHP/ThinkPHP.php';

Application/Common/Conf/config. php file code

/* MODULE configuration */'autoload _ NAMESPACE '=> array ('addons' => ONETHINK_ADDON_PATH), // list of extended modules 'default _ module' => 'home ', 'module _ DENY_LIST '=> array ('common', 'user'), 'module _ ALLOW_LIST' => array ('manager', 'home', 'admin '),

I found this, but it's useless.
Http://www.thinkphp1.cn/code/756.html

Unable to solve the problem of automatically jump to the logon page. Please help!

Reply content:

Under WeiPHP, an entry file is created and the relevant structure is automatically generated.
Entry File Code


   5.3.0 !');define('APP_DEBUG', true );define('BIND_MODULE','Manager');define('BUILD_CONTROLLER_LIST','Index,User,Pay,Log,JingJia,HongBao,Ads');define('BUILD_MODEL_LIST','User,Pay,Log,JingJia,HongBao,Ads');define ( 'APP_PATH', './Application/' );define ( 'RUNTIME_PATH', './Runtime/' );require './ThinkPHP/ThinkPHP.php';

Application/Common/Conf/config. php file code

/* MODULE configuration */'autoload _ NAMESPACE '=> array ('addons' => ONETHINK_ADDON_PATH), // list of extended modules 'default _ module' => 'home ', 'module _ DENY_LIST '=> array ('common', 'user'), 'module _ ALLOW_LIST' => array ('manager', 'home', 'admin '),

I found this, but it's useless.
Http://www.thinkphp1.cn/code/756.html

Unable to solve the problem of automatically jump to the logon page. Please help!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.