If you are a developer who is building a Web site with rich content, you may need to consider the following solutions, including (a) databases for content, (B) A template system that separates the GUI from the content. (c) it is used to maintain a user-friendly interface for data in the database, and (d) it controls the final appearance of the generated page.
A very interesting solution that provides all of the above is the Yaapi, which is the abbreviation of the beginning of "Your Article Application Programming Interface (Your Article Application Programming Interface. It is a PHP class that provides built-in methods to access the content stored in the database. The management module is equipped with classes to assist in data management. This API is powerful enough to handle most common tasks required by the Content Management System (CMS.
To install and use Yaapi, you need a Web server that supports PHP, such as Apache, PHP, and MySQL database server. You can download a Yaapi and decompress it to a location in the root directory of the server.
You also need to create a MySQL database to accommodate the data structure of the Yaapi. Use the yaapi in the source file. create the database in the SQL file, and then open the class Constructor (article. class. in the PHP file), use the name and access parameters used for the database to update it.
To add content to a database, you must use http: // yaapi Management Module on your-server/Yaapi-root/admin/(replace "your-server" with the name of the server with Yaapi installed ", use the directory decompressed by Yaapi to replace "yaapi-root "). You need to use this management module to create (and delete) content categories, and then put the articles in these categories. The following is a brief table of fields you will encounter in this process:
Category: Section ID of the document. If your document has two levels, use this parameter to define the second level. Title: the Author of the article (Author): the Author's email (E-mail): the Author's email address license (Approved ): used to indicate whether the document has been "Licensed" to display the logo Image (Image): Optional Image URL Content related to the article (Content ): a small note about the last project in the article: by inserting delimiters in the article text, Yaapi can split your large article into several small pages for display. See the following example:
Introduction of article here
# Intro # Page 1 content here # page # Page 2 content here # page # Page 3 content here # page # and so on...
Don't forget to confirm after entering the article, because only the confirmed article can be retrieved by API.