Considerations for case-insensitive __app__ and __url__ in TP

Source: Internet
Author: User


The controller is named: AuthGroupAction.class.php

Problem: In the controller jump. If the address is incorrectly sized when the template jumps: It will be reported that the module cannot be loaded
Error: Unable to load module: Authgroup

Workaround:

__app__: Write your own case:  
<td><a href= "__app__/authgroup/setrule/id/{$vo. ID}" target= "dialog" Width= "" height= "> Distribution Rules </ a></td> = entry name/Controller name/method name admin.php/authgroup/setrule normal jump


__URL__: Two kinds of situations
One is the configuration that opens:
' Url_case_insensitive ' = True,//url is not case-sensitive
The __url__ force is converted to lowercase. You will get an error (regardless of whether your controller name is case sensitive. or all lowercase)
<td><a href= "__url__/setrule/id/{$vo. ID}" target= "dialog" Width= "" height= "> Distribution Rules </a></ td>  = entry name/Controller name/method name  admin.php/authgroup/setrule        Error
The second type is case-sensitive in configuration:
As long as the controller is named and the address bar is case-sensitive. Can jump normally
' Url_case_insensitive ' = False,//url is not case-sensitive
At this point, the __url__ will not be converted to lowercase. What is the name of the controller and what format is it?
<td><a href= "__url__/setrule/id/{$vo. ID}" target= "dialog" Width= "" height= "> Distribution Rules </a></ td>  = entry name/Controller name/method name  admin.php/authgroup/setrule         normal jump

Considerations for case-insensitive __app__ and __url__ in TP

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.