у меня хендлер, тот который index.php вот так обрабатывает запросы:
index.php:
PHP
LabCMS::i()->setModuleTemplate($activeClass->getTemplate());
Tpl::i()->assign('data',$activeClass->getData());
class sOrder extends tourHelper:
PHP
public function __construct()
{
if (method_exists($this,$_GET['var1'])) call_user_func(array($this,$_GET['var1']));
else return false;
}
private function local()
{
$this->data=$this->getLocalTourByID($_GET[var2]);
if (!$this->data) LabCMS::i()->error403();
$this->template='showcase_order_'.$_GET['var1'].'.tpl';
}
...
public function getData()
{
return $this->data;
}
public function getTemplate()
{
return $this->template;
}