Home > CMS Tutorial > PHPCMS > body text

phpcms development steps

王林
Release: 2019-11-04 16:20:48
Original
3043 people have browsed it

phpcms development steps

Development process

The general development process to create a module for your phpcms is:

1. Create a database and Data table; (no database operations can be skipped)

2. Create module directory;

3. Create module controller class;

4. Create module class and module Function; (If it is just a simple module, you don’t need to create it)

5. Create template file;

6. Run and debug

Create module

The modules in the phpcms v9 framework are located in the phpcms/modules directory. Each directory is called a module. If you want to create a module, just create a folder in the phpcms/modules directory and put it in your The controller class will do the trick.

Create module controller

In creating the module, we have already created a module named "test". Next, we continue to add two modules to this module. Controller class. The controller of phpcms v9 is the class file of the module, located under the phpcms/modules/modules/ directory.

Create database model class

The database model is located in: phpcms/model/ directory.

The naming rule for data model files is recommended to be the data table name '_model.class.php'

Add template call in the controller

phpcms Complete separation of templates and programs can be achieved, so templates must be loaded in our controller program so that they can be displayed more friendly.

Recommended tutorial: phpcms tutorial

The above is the detailed content of phpcms development steps. For more information, please follow other related articles on the PHP Chinese website!

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!