Questions about zf beginners

Source: Internet
Author: User
Questions about zf beginners. In this example, there is a requiretemplate. incinclude_once 'Template. inc '; $ tpl = newTemplate (); the result file is not found. my zf is 1.11. could you tell me this template. where is inc ???, Where did your examples come from? in zf, we do not recommend that you use requi zf for beginners.
In this example, there is a request template. inc
Include_once 'Template. Inc ';
$ Tpl = new Template ();
The result file is not found. my zf is 1.11. where is this template. inc ???

------ Solution --------------------
Where did your example come from?

Direct require is not recommended in zf

The old static methods include loadClass loadFile.

We recommend that you use helper and the custom namespace method.

No zend is named after x. x, except for the suffix.

The landlord can send a code to see
------ Solution --------------------
Discussion

Thank you. the example is provided on the official website. if you don't care about it, I wrote a friend on the template. inc upstairs, who has been working on this forum for many years. Thank you.

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.