Thinkphp custom Success interface, failure interface, exception interface

Source: Internet
Author: User

In the thinkphp manual, the configuration reference in the appendix has a template engine setup.

or in the manual inside the controller, jump and redirect inside.

Next, you'll learn how to customize these interfaces.

Write the configuration parameters of the appeal to the configuration file, modify the path to their own specified path, you can now write the interface.

Another way to do this:

Custom Prompt interface
' Tmpl_action_error ' = module_path. ' View/public/error.html ',//default error jump corresponding template file
' tmpl_action_success ' = module_path. ' View/public/success.html ',//default successful jump to the corresponding template file
' tmpl_exception_file ' = module_path. ' View/public/exception.html ',//template file for exception page

Thinkphp custom Success interface, failure interface, exception interface

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: 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.