Home > Backend Development > PHP Tutorial > WeiPHP2.0 新建模块自动跳转到登录页

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

WBOY
Release: 2016-06-06 20:22:54
Original
1366 people have browsed it

在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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

找到了这个,但是没用
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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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

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

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template