Home > Article > Backend Development > destoon secondary development introductory example tutorial
destoon secondary development introductory example tutorial Destoon is the preferred solution for open source B2B (e-commerce) industry portals based on PHP+MySQL. This article briefly describes the secondary development of Destoon as follows: 1. Initialization system Including common.inc.php in the system root directory can initialize the system. For example, create a hello.php in the root directory of the site with the following code:
2. Write logic After the system is initialized, you can write logic code in the php file, and you can also call the system's built-in variables, functions and classes. example:
3. Application template All HTML output to the browser is displayed through the rules in the template. Instructions:
Parameter a represents the template name Parameter b represents the directory where the template is stored. This parameter does not need to be set. If the template directory is default, then: template('a', 'b'); represents template/default/b/a.htm template file template('a'); represents template/default/a.htm template file example
In addition, template/default/hello.htm template The file needs to be created in advance. Recommended reading: destoon introductory tutorials and skill examples |