Today I got stuck while doing DEDE dynamic call template, and was finally solved by the powerful Internet. Record the solution to the problem. process for later use
You can set the default helper initialization in /data/helper.inc.php, and the system loads the helper by default
For example, create a sample helper file test.helper.php
<span>1</span> <span>if</span> (!<span>function_exists</span>('HelloDede'<span>)){ </span><span>2</span> <span>function</span><span> HelloDede(){ </span><span>3</span> <span>echo</span> "Hello! Dede..."<span>; </span><span>4</span> <span> } </span><span>5</span> }
Initialization: helper('test');
Use: HelloDede();