ZendFramewor in php (1) application. ini configuration instructions

Source: Internet
Author: User
ZendFramewor in php (1) application. ini configuration description; project configuration information to configuration method. take the Apache server mode as an example:; in httpd. conf virtual host configuration section or project. DEFINE.; in the htaccss file .; the specific definition method is to add a line of command: SetEnvAPPLICATION_ENV product runtime environment; for example, development environment: S php ZendFramewor (1) application. ini configuration instructions
; Project configuration information to the configuration method. take the Apache server mode as an example:; in httpd. conf virtual host configuration section or project. DEFINE.; in the htaccss file .; the specific definition method is to add a line of command: SetEnv APPLICATION_ENV product running environment; for example, development environment: SetEnv APPLICATION_ENV development; automatically generated when you create a project using the method used in the previous article. the content of the htacess file is as follows: SetEnv APPLICATION_ENV development; RewriteEngine On; RewriteCond % {REQUEST_FILENAME}-s [OR]; RewriteCond % {REQUEST_FILENAME}-l [OR]; rewriteCond % {REQUEST_FILENAME}-d; RewriteRule ^. * $-[NC, L]; RewriteRule ^. * $ index. php [NC, L]; for the product running environment, application. ini defines three types of staging testing development: online status test status development status [production]; phpsettings php runtime environment configuration, actually calls the php ini_set () function phpSettings. display_startup_errors = 0phpSettings. display_errors = 0phpSettings. log_errors = 1phpSettings. log_errors_max_len = 1024phpSettings. ignore_repeated_errors = 1phpset.pdf. date. timezone = "Asia/Shanghai" phpSettings. error_log = APPLICATION_PATH "/.. /lib/error. log "; bootstrap boot file configuration bootstrap. path = APPLICATION_PATH "/Bootstrap. php "; bootstrap. class = "Bootstrap" can be omitted. the default value is Bootstrap. autoloadernamespaces registers the automatically loaded namespace autoloadernamespaces.0 = "DB _" autoloadernamespaces.1 = "Help _". the front-end controller configures resources. frontController. params. displayExceptions = 0resources. frontController. moduleDirectory = APPLICATION_PATH "/modules" resources. frontController. moduleControllerDirectoryName = "controllers" resources. frontController. defaultModule = "default"; layout configuration resources. layout. layout = "default" resources. layout. layoutPath = APPLICATION_PATH "/layouts/default"; views are configured separately based on modules (this part should be initialized in Bootstrap) resources. view. params. default. basePath = APPLICATION_PATH "/modules/default/views/" resources. view. params. default. layout = "default" resources. view. params. default. layoutPath = APPLICATION_PATH "/layouts/default" resources. view. params. admin. basePath = APPLICATION_PATH "/modules/admin/views/" resources. view. params. admin. layout = "admin" resources. view. params. admin. layoutPath = APPLICATION_PATH "/layouts/admin"; database configuration (this part should be configured in the initial database in Bootstrap) resources. db. adapter = "mysqli" resources. db. params. host = "localhost" resources. db. params. username = "root" resources. db. params. password = 123456 "resources. db. params. dbname = "dxk" resources. db. params. charset = "utf8"; [staging: production] phpset.pdf for website launch environment configuration. display_startup_errors = 0phpSettings. display_errors = 0; test environment configuration [testing: production] phpSettings. display_startup_errors = 1phpSettings. display_errors = 1; development environment configuration [development: production] phpSettings. display_startup_errors = 1phpSettings. display_errors = 1resources. frontController. params. displayExceptions = 1

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.