Tibula plugin

 

Tibula could be also used as a plugin to existing frameworks.

To use into your own php pages just include http://media.tibula.net/tibulApi, call tibulaSetUrl(url) with the full Tibula running daemon url, then call tibula(id) as many time as you need to populate your page.

Calling tibula(id) with a valid id will return only the outer xhtml for the selected id, calling without arguments will return the full page.

The first tibula() call will populate $ejaDom that will contain the full tibula xml dom.

If you don't set a valid tibula url it will point by default to http://127.0.0.1/tibula.php

example:

<html>

<body><?php 

if (include("tibulApi.php")) {

   tibula("http://domain/tibula.php";

} else {

 exit("tibulApi missing...";

}

print tibula("ejaPage");

?></body>

</html>