Zend Framework tutorial configuration file application.ini analysis, php.inizend configuration_PHP tutorial

WBOY
Release: 2016-07-12 08:57:29
Original
880 people have browsed it

Zend Framework tutorial configuration file application.ini analysis, php.inizend configuration

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 configuration files. The specific related setting options of the configuration file are as follows:

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

Copy after login

includePath related configuration

includePaths.library = APPLICATION_PATH "/../library"
includePaths.zend = APPLICATION_PATH "/../../Library"

Copy after login

Location of the boot class

bootstrap.path = APPLICATION_PATH "/Bootstrap.php"

Copy after login

Boot class name

bootstrap.class = "Bootstrap"

Copy after login

Default namespace

appnamespace = "Application"

Copy after login

Custom namespace

autoloadernamespaces.app = "App_" 

Copy after login

Whether abnormality is displayed

resources.frontController.params.displayExceptions 

Copy after login

Configuration of resources

If the application uses a modular approach

resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] = 

Copy after login

Custom layout plugin

resources.frontController.plugins.layout = Abc_Controller_Plugin_Layout

Copy after login

layout file directory

resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"

Copy after login

Default laytou

resources.layout.layout = default

Copy after login

Customized helper path
Copy code The code is as follows: resources.view.helperPath.App_View_Helper = APPLICATION_PATH "/modules/default/views/helpers"

Set up session

session.lifetime = 3600

Copy after login

Set time

datetime.timezone = "Asia/Shanghai"
datetime.format.date = "m-d-Y"
datetime.format.datetime = "m-d-Y H:i:s"
Copy after login

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"

Copy after login

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

Copy after login

Readers who are interested in more zend-related content can check out the special topics of this site: "Zend FrameWork Framework Introductory Tutorial", "php Excellent Development Framework Summary", "Yii Framework Introduction and Summary of Common Techniques", "ThinkPHP Introductory Tutorial" , "php object-oriented programming introductory tutorial", "php mysql database operation introductory tutorial" and "php common database operation skills summary"

I hope this article will be helpful to everyone in PHP programming.

Articles you may be interested in:

  • Zend Framework Tutorial Detailed Explanation of Loader and PluginLoader Usage
  • Zend Framework Tutorial Detailed Explanation of Autoloading Usage
  • Zend Framework Tutorial Resource Autoloading usage example
  • Zend Framework tutorial MVC framework Controller usage analysis
  • Zend Framework tutorial road by function Zend_Controller_Router detailed explanation
  • Zend Framework tutorial Zend_Controller_Plugin plug-in usage detailed explanation
  • Zend Framework Tutorial: Encapsulation of the Response Object Detailed Explanation of the Zend_Controller_Response Instance
  • Zend Framework Tutorial: Encapsulation of the Request Object Zend_Controller_Request Instance Detailed Explanation
  • Zend Framework Tutorial: Detailed Explanation of the Action Base Class Zend_Controller_Action
  • Zend Framework Tutorial Detailed Usage of Distributor Zend_Controller_Dispatcher
  • Zend Framework Tutorial Detailed Usage of Front-End Controller Zend_Controller_Front
  • Zend Framework Tutorial Detailed Usage of Application and Bootstrap

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1108611.htmlTechArticleZend Framework tutorial configuration file application.ini analysis, php.inizend configuration This article analyzes the Zend Framework configuration file application. ini usage. Share it with everyone for your reference, specifically...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template