This article analyzes the usage of Zend Framework configuration file application.ini. Share it with everyone for your reference, the details are as follows:
The most convenient and commonly used configuration method is to use the configuration file. The specific related setting options of the configuration file are as follows:
The related configuration options of php.ini, the specific format is as follows:
phpSettings. Configuration options, such as
phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1
includePath related configuration
includePaths.library = APPLICATION_PATH "/../library" includePaths.zend = APPLICATION_PATH "/../../Library"
The location of the boot class
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
Boot class name
bootstrap.class = "Bootstrap"
Default namespace
appnamespace = "Application"
Since Define the namespace
autoloadernamespaces.app = "App_"
Whether to display exception
resources.frontController.params.displayExceptions
Configuration of resources
If the application uses a modular approach
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" resources.modules[] =
Custom layout plug-in
resources.frontController.plugins.layout = Abc_Controller_Plugin_Layout
layout file directory
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
Default laytou
resources.layout.layout = default
Customized helper path
resources.view.helperPath.App_View_Helper = APPLICATION_PATH "/modules/default/views/helpers"
Set sessiong
session.lifetime = 3600
Set time
datetime.timezone = "Asia/Shanghai" datetime.format.date = "m-d-Y" datetime.format.datetime = "m-d-Y H:i:s"
Database Configuration
db.adapter = "pdo_mysql" db.prefix = "pre_" db.host = "localhost" db.port = "3306" db.dbname = "db" db.username = "root" db.password = "" db.charset = "utf8"
Log configuration
log.adapter = pdo_mysql log.params.host = localhost log.params.port = 3306 log.params.username = root log.params.password = log.params.dbname = test log.params.charset = utf8 log.params.profiler.enabled = true log.params.profiler.class = Zend_Db_Profiler_Firebug
I hope this article will be helpful to everyone PHP Programming helps.
For more Zend Framework tutorial configuration file application.ini analysis related articles, please pay attention to the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 English version
Recommended: Win version, supports code prompts!

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Notepad++7.3.1
Easy-to-use and free code editor
