Maison  >  Article  >  développement back-end  >  WeiPHP2.0 新建模块自动跳转到登录页

WeiPHP2.0 新建模块自动跳转到登录页

WBOY
WBOYoriginal
2016-06-06 20:22:541329parcourir

在WeiPHP下,新建了入口文件,自动生成了相关结构。
入口文件代码

<code class="php"><?php if(version_compare(PHP_VERSION,'5.3.0','<'))  die('require PHP > 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';</code>

Application/Common/Conf/config.php文件部分代码

<code class="php">  /* 模块相关配置 */
    'AUTOLOAD_NAMESPACE' => array('Addons' => ONETHINK_ADDON_PATH), //扩展模块列表
    'DEFAULT_MODULE'     => 'Home',
   'MODULE_DENY_LIST'   => array('Common', 'User'),
   'MODULE_ALLOW_LIST'  => array('Manager','Home','Admin'),
</code>

找到了这个,但是没用
http://www.thinkphp.cn/code/756.html

无法解决自动跳转到登录页问题,求帮助!

回复内容:

在WeiPHP下,新建了入口文件,自动生成了相关结构。
入口文件代码

<code class="php"><?php if(version_compare(PHP_VERSION,'5.3.0','<'))  die('require PHP > 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';</code>

Application/Common/Conf/config.php文件部分代码

<code class="php">  /* 模块相关配置 */
    'AUTOLOAD_NAMESPACE' => array('Addons' => ONETHINK_ADDON_PATH), //扩展模块列表
    'DEFAULT_MODULE'     => 'Home',
   'MODULE_DENY_LIST'   => array('Common', 'User'),
   'MODULE_ALLOW_LIST'  => array('Manager','Home','Admin'),
</code>

找到了这个,但是没用
http://www.thinkphp.cn/code/756.html

无法解决自动跳转到登录页问题,求帮助!

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn