Home  >  Article  >  CMS Tutorial  >  Where are phpcms constants defined?

Where are phpcms constants defined?

藏色散人
藏色散人Original
2020-01-08 17:48:032095browse

Where are phpcms constants defined?

#Where are phpcms constants defined?

The location of phpcms custom constants

Sometimes phpcms is used to define variables that do not need to be changed frequently. Variables that are not often used in php can be defined as constants ,

So which file in phpcms defines the constants here, such as website domain name, company phone number, company address, company fax, etc. These can all be in the constant file.

Then we can extend it in phpcms/base.php

Where are phpcms constants defined?

Then in the static page, use {NAV_O} to output the value of this constant

PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!

The above is the detailed content of Where are phpcms constants defined?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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