ThinkPHP3.2 cannot load the controller
<code> 在将ThinkPHP3.1.3升级到ThinkPHP3.2.3时,即使将View、Mode、Controller放到了指定目录下也还是出现无法加载控制器的问题,经过一番研究,发现主要可能由几个原因引起。
</code>
- APP_USE_NAMESPACE (whether to use namespace): When set to false, if the namespace is used when defining the controller, the controller will not be loaded. In this case, set the parameter It can be true. Can be set in ThinkPHP/Common/Conf/convention.php.
- ACTION_BIND_CLASS (whether to bind methods and classes): When set to false, the structure of the Controller folder should be Controller/View name Controller.class.php, and the methods are written one by one in the class; but when set to true, the Controller folder The structure of the folder should be Controller/View name/method.class.php, with one class corresponding to one method.
- MODULE_ALLOW_LIST (allows access to modules) and MODULE_DENY_LIST (denies access to modules): When a module is set to prohibit access or is not set in the allowed access list, all pages under the module cannot be accessed normally.
').addClass('pre-numbering').hide();
$(this).addClass('has-numbering').parent().append($numbering);
for (i = 1; i ').text(i));
};
$numbering.fadeIn(1700);
});
});
The above introduces the problem that ThinkPHP32 cannot load the controller, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.
Statement: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