Pages

Wednesday, October 27, 2010

Zend framework application.ini file settings

[local]

    ;set timezone
        phpsettings.date.timezone = "America/Chicago"

    ;include path
        includePaths.library = ROOT_DIR "/library"

    ;bootstrap
        bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
        bootstrap.class = "Bootstrap"

    ;autoloadernamespaces
        autoloadernamespaces.0 = "Tutorial_"
        autoloadernamespaces.1 = "Zend_"
   
   
    ;resources.frontController
        resources.frontController.plugins.moduleswitcher = "Tutorial_Controller_Plugin_ModuleSwitcher"
        resources.frontController.plugins.hasaccess = "Tutorial_Controller_Plugin_HasAccess"

    ;resources.view
        resources.view.helperPath.Tutorial_View_Helper = ROOT_DIR "/library/Tutorial/View/Helper"

   ; configuration defined by application developer   
        ; required paths informations
        system.paths.var        =    ROOT_DIR "/var"
        system.paths.log        =    ROOT_DIR "/var/log/debug"
        system.paths.report        =    ROOT_DIR "/var/log/report"

    ;The config which must disable / change in production server
        ;error reporting
            phpSettings.display_startup_errors = 0
            phpSettings.display_errors = 0

     ;database settings
            database.adapter                    = pdo_mysql
            database.params.host                =
            database.params.username            =
            database.params.password            =
            database.params.dbname              =
            database.params.profiler.enabled    = true
            database.params.profiler.class      = Zend_Db_Profiler_Firebug

;system or application related configuration
            ;logging and debugging
            system.log.error.enable    =    true
            system.log.debug.enable = true
            system.log.debug.firebug = false
            system.log.debug.critonly = false
            system.log.report.enable = false
           
            ;javascript compress option
            system.view.js.minify.enable = false
            system.view.js.minify.prefix = ycomp
           
            system.view.js.compress.enable = false
            system.view.js.compress.prefix =
           
            ;css compress option
            system.view.css.minify.enable = false
            system.view.css.minify.prefix = min
           
            system.view.css.compress.enable = false
            system.view.css.compress.prefix =
           
            ; page compression option
            system.phpSpeedy.active    =    0
            system.phpSpeedy.minify.page = 1
            system.phpSpeedy.gzip.page = 1
           
            ; date format to be used in all view
            system.view.date.format = "Y-m-d"
           
            ; cache configuration
            system.cache.translate    =    true;
            system.cache.db_meta    =    true;
           
            ; database cache settings
            cache.frontend.type = Core
            cache.frontend.options.lifetime = 86400
            cache.frontend.options.automatic_serialization = true
            cache.frontend.options.cache_id_prefix = TutorialV2_
            cache.frontend.options.cache = true
            cache.backend.type = Memcached
            cache.backend.options.servers.1.host = localhost
            cache.backend.options.servers.1.port = 8086
            cache.backend.options.servers.1.persistent = true
            cache.backend.options.servers.1.weight = 1
            cache.backend.options.servers.1.timeout = 5
            cache.backend.options.servers.1.retry_interval = 15

; each modules view settings
            system.storefront.layout.encoding = "UTF-8"
            system.storefront.layout.doctype = "XHTML1_TRANSITIONAL"
            system.storefront.layout.contenttype = "text/html; charset=UTF-8"
            system.storefront.layout.title.name = "Tutorial - Tutorial | Manage Your Sporting Activities"
            system.storefront.layout.title.seperator = ": :"
            system.storefront.layout.name =    "default"
            system.storefront.template.name =    "one-coloumn"
            system.storefront.layout.skin = "red"
           
            system.admin.layout.encoding = "UTF-8"
            system.admin.layout.doctype = "XHTML1_TRANSITIONAL"
            system.admin.layout.contenttype = "text/html; charset=UTF-8"
            system.admin.layout.title.name = "Tutorial - Tutorial | Manage Your Sporting Activities"
            system.admin.layout.title.seperator = ": :"
            system.admin.layout.name =    "default"
            system.admin.template.name =    "one-coloumn"
            system.admin.layout.skin     =     "red"
            system.services.layout        =    false

;ssl config
        modules.storefront.checkout.index.require_ssl = true
        modules.storefront.checkout.save-shipping-billing.require_ssl = true
        modules.storefront.checkout.show-popup.require_ssl = optional

No comments:

Post a Comment