For example,. phtml file, if you want to introduce a View-& gt; Scripts-& gt; B folder B. phtml file, which seems to use include & nbsp ;'.. /B. phtml '; No. how does zf make common pages?
For example,. phtml file, if you want to introduce a View-> Scripts-> B folder B. phtml file, which seems to use include '.. /B. phtml'; no, what method should I use? Thank you for your guidance.
------ Solution --------------------
The path is incorrect ..?
------ Solution --------------------
Set from the layout layer.
------ Solution --------------------
If you access the page according to the normal process, that is, if you access the page a through controller-> action, when you use the include statement in the code, the root directory should be under 'public. the path is incorrect. however, we do not recommend that you include pages on any page. the public part of the front-end page should be placed in the layout directory.
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.