YaWK  24.1
Yet another WebKit
embed_page.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 embedPage obj is loaded
8 if(!isset($embedPage) || (empty($embedPage)))
9 {
10  // if not, include embedPage widget class
11  require_once ('classes/embedPage.php');
12  // create embedPage widget object
13  $embedPage = new \YAWK\WIDGETS\EMBED_PAGE\PAGE\embedPage($db);
14 }
15 // init current embedPage
16 $embedPage->init();