YaWK  24.1
Yet another WebKit
custom_html.php
Go to the documentation of this file.
1 <?php
2 // check if db obj exits
3 if (!isset($db) || (empty($db)))
4 { // if not, create new db obj
5  $db = new \YAWK\db();
6 }
7 // check if customHtmlCode obj is loaded
8 if(!isset($customHtml) || (empty($customHtml)))
9 {
10  // if not, include customHtmlCode widget class
11  require_once ('classes/custom_html.php');
12  // create customHtmlCode widget object
13  $customHtml = new \YAWK\WIDGETS\CUSTOM_HTML\CODE\customHtml($db);
14 }
15 // init current customHtmlCode
16 $customHtml->init();