DEDECMS-helper assistant extension

WBOY
Release: 2016-08-08 09:30:40
Original
970 people have browsed it

Today I got stuck while doing DEDE dynamic call template. It was finally solved by the powerful Internet. I will record the process of solving the problem for future reference

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> }
Copy after login

Initialization: helper('test');

Use:HelloDede();

The above introduces the DEDECMS-helper assistant extension, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!