Frequently Asked Questions about Secondary Development
Answer: You can add the line at the top of the developed program code: define('EmpireCMSAdmin','1'); It is not affected by this setting. |
Answer: The address of the imported language pack file is relative to
../data/language/ directory, example: (1) If the program file is in the /e/extend/ directory, such as: /e/extend/a.php, you can use: to import the language package require LoadLang('pub/fun.php'); (2) If the program file is in the /e/extend/helloworld/ directory, for example: /e/extend/helloworld/a.php, you can use: to import the language package require '../'.LoadLang('pub/fun.php'); (3) If the program file is in the root directory, such as: /a.php, you can use: to import the language package require ECMS_PATH.'e/data/'.LoadLang('pub/fun.php'); |
Answer: This variable does not need to be set if you do not use functions such as printerror(). The default $editor variable is 0. When the program file is in the /e/path/ directory, $editor does not need to be set, that is, the default is 0. When the program file is in the /e/path/path2/ directory, $editor=1. When the program file is in the /e/path/path2/path3/ directory, $editor=2. When the program file is in the /e/path/path2/path3/path4/ directory, $editor=3. |
Import column, topic, and title classification cache files: /e/data/dbcache/class.php Import the member group cache file: /e/data/dbcache/MemberLevel.php Import tag function file:/e/class/t_functions.php Import the compilation tag file: /e/class/functions.php |
(1). Numeric variables can be processed with (int) or intval function, example: $page=(int)$_GET['page']; or $page=intval($_GET['page']); (2) Numeric variables with decimal points can be processed with the (float) or floatval function, example: $money=(float)$money; or $money=floatval($money); (3), character type processing: Without spaces or other special symbols, use RepPostVar() function filter With spaces or other special symbols use: Usage for writing to the database: |