Let's talk Contact us. No cost. No obligation.

Fill out this form and we will contact you with in 24 hrs.

    captcha

     

    Knowledge Base

    Recommended Project Structure in Zend Framework

    April 21, 2014

    1.Application/

    configs/

    application.ini

    controllers/

    forms/

    layouts/

    filters/

    helpers/

    scripts/

    models/

    modules/

    services/

    views/

    filters/

    helpers/

    scripts/

    bootstrap.php

    2. data/

    cache/

    indexes/

    Locales/

    logs/

    Sessions/

    uploads/

    3. docs/

    4. library/

    5. Public/

    css/

    images/

    js/

    .htaccess

    index.php

    6.temp/

    7. tests/

    application: This directory contains our application. All type of configuration, services, mvc system, bootstrap file exist here.

    configs: The application-wide configuration directory.

    controllers, models, and views: These directories serve as the default controller, model or view directories. Having these three directories inside the application directory provides the best layout for starting a simple project as well as starting a modular project that has global controllers/models/views.

    layouts: This layout directory is for MVC-based layouts.

    modules: Modules allow a developer to group a set of related controllers into a logically organized group.

    Bootstrap.php: This file is the entry point for your application, and should implement Zend_Application_Bootstrap_Bootstrapper. The purpose for this file is to bootstrap the application and make components available to the application by initializing them.

    data: This directory provides a place to store application data that is volatile and possibly temporary.

    docs: This directory is for documentation.

    library: This directory contain common libraries on which application depends.

    public: This directory contains all public files for your application that are directly accessible from http

    scripts: This directory contains maintenance and/or build scripts. Such scripts might include command line, cron etc

    temp: The temp/ folder is set aside for transient application data.

    tests: This directory contains application tests. These could be hand-written, PHPUnit tests, Selenium-RC based tests.