Static Box Example

This is a example of static html webpage generated by WBengine->Box->render() function, located at:

The HTML template file for this box is located at "App/Src/View/" directory, organized by a section name. The filenames and directories should be named with first upper letter. The section names is also stored in database and also is customizable.

All definitions about the boxes is stored in MySQL database in two tables "cms_boxes". There is stricted relation between all tables by unique key "site_id", located in all tables "cms_boxes", "cms_boxorders", "cms_sites", "cms_menu" and "cms_articles".

The Box definition stored in table "cms_boxes" containing items "module" coresponding the PHP class name and "method" what coresponding the method name of this class.

About Box definition

Here is About box definition stored in table "cms_boxes" and related files and tei location:

So, finaly We should have may boxes on single site or across all sites. For this example the HTML template file should be located at: /App/Src/View/Front/Central/about.tpl

Powered by WBengine, Apache/2.4.38 (Debian), MySQL 8.3.0 and PHP 7.4.1, Hosted By RRsoft © 2008 - 2024 All Rights Reserved