Zendframework templates introduce file paths such as css and js in the public path and the method for generating URLs in the template.

Source: Internet
Author: User
The system structure. There are two modules: default and admin, which have also been integrated with smarty. But there are two problems: 1. When the access address is XXX. comindex, XXX. comadmin, the page is displayed normally, and the accessible address is XXX. comdefault...

The system structure. There are two modules: default and admin, which have also been integrated with smarty. However, there are two problems:
1. The access address is ingress.
2. how to generate the url on this page, just like thinkphp also has a U method to generate the url. The url generation method on the zendframework template is not found. I hope you can answer my questions, thank you.

Reply content:

The system structure. There are two modules: default and admin, which have also been integrated with smarty. However, there are two problems:
1. The access address is ingress.
2. how to generate the url on this page, just like thinkphp also has a U method to generate the url. The url generation method on the zendframework template is not found. I hope you can answer my questions, thank you.

You should directly look at the original page code to see what baseUrl outputs.
If the baseUrl is a complete url, there is no problem, but if there is a problem, then the baseUrl may be a relative path, you need to add/in front /.
That is, src = "/<$ baseUrl>/js/nav. js? 6.1.3"

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.