Php administrator background such as and call the user front-end code method

Source: Internet
Author: User
In php, the administrator adds class content in the background such as and calls the user's front-end code in the website administrator's background. the template class content of the add preview function is displayed according to the front-end display template of the website (both the code and template are written ), how to jump to the background href


Reply to discussion (solution)

Are you worried that the front-end display page cannot be called through indexes before data is generated? You can write a page, call the foreground template, and obtain and replace the added content with the template.

The background page is localhost/admin/index. php ?... The index file under the admin file is passed? Method and page
The front-end page is localhost/model/index. php ?... Same as above
In this case, is there a way to directly call the index file in the model and jump out of the index file in the admin file,


When the page is dynamic, data must be retrieved based on the ID value

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.