Php Framework-thinkphp dual-project, one front-end and one backend, cannot access the Login/login module of the admin project

Source: Internet
Author: User
The Admin controller code is as follows & amp; lt ;? Php is automatically generated by the system and used for testing only. classIndexActionextendsAction {publicfunctionindex () {$ this-& amp; gt; redirect (& #039; Loginlogin & #039 ;);} the address is 192. 168...


Directory

The Admin controller code is as follows:
// This class is automatically generated by the system for testing purposes only
Class IndexAction extends Action {
Public function index (){
$ This-> redirect ('login/login ');
}

The address uses http: // 192.168.88.88/hqzc/Admin. php/to access the controller. at last, it jumps to the Login/login under the APP.

I don't know why? 20172087976 contact me if you want to view the source code

Reply content:


Directory

The Admin controller code is as follows:
// This class is automatically generated by the system for testing purposes only
Class IndexAction extends Action {
Public function index (){
$ This-> redirect ('login/login ');
}

The address uses http: // 192.168.88.88/hqzc/Admin. php/to access the controller. at last, it jumps to the Login/login under the APP.

I don't know why? 20172087976 contact me if you want to view the source code

The solution was not solved. later, THINKPHP of the latest version used the grouping mode.

Do you see this in the entry file in the manual?

Why do I still use 3. 1 ......

$ This-> redirect ('admin/Login/login ');
If you still jump to the App, it will be a bit dizzy...

Admin. php is bound to the group?

define('BIND_MODULE','Admin');

It's not clear about 3.1. do you think this constant is helpful to you?

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.