Вынес класс в отдельный файл

This commit is contained in:
Фёдор Подлеснов 2018-01-30 15:31:18 +03:00
parent 7187963ac9
commit 7bbccea3b0
5 changed files with 68 additions and 62 deletions

View file

@ -48,11 +48,12 @@ class View_Page extends View_View
function replaceContent($match, $offset)
{
//$result = phptal_component($match, $offset);
/*.Controller_Component.*/$component = null;
if(class_exists("Controller_Site")){ //Если мы в CMS2
$component = Controller_Site::loadComponent($match);
}else{
} else {
global $db, $registry; //
$component = Controller_Component::loadComponent($match, $db, $registry);
}