PHP Template Phpbean directory structure _php tutorial

Source: Internet
Author: User
Tags php template zend framework
The app/directory is the main directory of the program.
App/actions Place controller files, support multi-level directories. In the case of a controller, the file must be ***action.php, and if it is an abstract class, it must be ***.php.
App/models the file name of the model is ***.php where * * must be consistent with the model class name in the file
App/views Place an attempt to file or template file, any level of directory

Config configuration file, which primarily places database configuration information, cache configuration, SMTP configuration, and so on.

Libs Library classes and plugins
Libs/phpbean Phpbean's core library class
Libs/plugins plug-ins and the like, can make FCKeditor or smarty
Libs/zend Zend Library class, if you need to use the Zend Framework library class, you can put it here. I use the Zend Framework's Lucene cache and mail.

SRC main Placement Program of pictures, JS, CSS, etc.

Tmp/cache Accessing cache files
Tmp/uploadfiles placing an upload file

A single entry for the index.php program, primarily for routing and forwarding
Startup.php program startup files, such as Automatic reprint class, preliminary filtering external data, initialization program

http://www.bkjia.com/PHPjc/318526.html www.bkjia.com true http://www.bkjia.com/PHPjc/318526.html techarticle The app/directory is the main directory of the program. App/actions Place controller files, support multi-level directories. If the controller, the file must be ***action.php, if it is an abstract class, it must be ***.P ...

  • 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.