ZF Beginner's question.
There is one in the example to require TEMPLATE.INC
Include_once ' Template.inc ';
$TPL = new Template ();
The result file is not found, I under the ZF is 1.11, excuse me, where is this template.inc???
------Solution--------------------
Where did you get the example?
ZF does not recommend a direct require approach.
Compared with the old LoadClass loadfile two static methods.
It is generally recommended to use helper and custom namespaces methods.
For the time being, it is not found in Zend named with x.x, except for suffixes.
Landlord can send paragraph code out to see
------Solution--------------------
Explore
Thank you, the example is the official website gives, did not control these, oneself wrote a template.inc upstairs friend very has the endurance, many young, has been committed this forum to cultivate. Thank you, sir.
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