Menu

#414 Extremly difficult to integrate - bad templating solution

precision
open
nobody
None
5
2013-10-17
2013-10-17
Lubos Dz
No

Hi,

I am sorry for saying this, but whole phpSysInfo is extremly difficult to integrate as 3rd party extension (e.g. into framework). This is caused due to hard-coded URL links, which dynamically load contents. Instead providing mechanism to submit own URL ROOT there is always hard-coded "./" webroot, which is OK only if somebody copies files directly under webroot - but in any other case it does not work.

Is there any chance to add such a simple function:

(in index.php)

switch($display){
...
case 'integrated':
$webpage = new HtmlOnlyNoLinks();
$webPage->run();
break;
}

That would return one static HTML content without any javascripts/CSS links and with embedded CSS? Then user can directly include such output into his page.
And yet, if he want to do some custom CSS styling, he can do with his own CSS defined outside of this HTML content.

I have spent couple of hours trying to fix all bloody links, but it's just too much time:-(

Thanx
Lubos

Discussion