Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2015-01-09 16:13:03

thambi03
Member
Registered: 2015-01-09
Posts: 2

basic architecture

Hi All,

I am new to livehelperhcat and just installed it and am using it.

Now I am debugging it using xdebug from Zend Studio.

The core of the web application seems to be the file index.php, which then loads the various scripts based on the url.

So, can someone explain what the following functions in the piece of code does.

erLhcoreClassSystem::init();

// your code here
ezcBaseInit::setCallback(
'ezcInitDatabaseInstance',
'erLhcoreClassLazyDatabaseConfiguration'
);

$Result = erLhcoreClassModule::moduleInit();

And i cannot see the $Result variable, only debug output seems to be written to.

Also, can you explain what the below functions do

$tpl = erLhcoreClassTemplate::getInstance('pagelayouts/main.php');
$tpl->set('Result',$Result);
if (isset($Result['pagelayout']))
{
    $tpl->setFile('pagelayouts/'.$Result['pagelayout'].'.php');
}

echo $tpl->fetch();

Thanks
Thambi

Offline

#2 2015-01-10 06:44:51

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: basic architecture

See this
https://livehelperchat.com/article/view/56
http://ezcomponents.org/docs

Also to find where each class resides just open
lib/autoloads/lhcore_autoload.php

And what does each class you will have to understand yourself just be looking at class code.

Offline

Board footer