Home > Article > CMS Tutorial > 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
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!