Правки namespace
This commit is contained in:
parent
ee06f1febb
commit
524b27936a
39 changed files with 141 additions and 120 deletions
|
|
@ -3,7 +3,7 @@
|
|||
namespace ctiso\View;
|
||||
use ctiso\View\View;
|
||||
|
||||
class List extends View
|
||||
class ListView extends View
|
||||
{
|
||||
function execute()
|
||||
{
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace ctiso\View;
|
||||
use ctiso\View\View,
|
||||
ctiso\Controller\Site,
|
||||
App\Controller\Site,
|
||||
ctiso\Controller\Component,
|
||||
ctiso\HttpRequest;
|
||||
|
||||
|
|
@ -54,10 +54,9 @@ class Page extends View
|
|||
function replaceContent($match, $offset)
|
||||
{
|
||||
//$result = phptal_component($match, $offset);
|
||||
/*.Controller_Component.*/$component = null;
|
||||
/*.Component.*/$component = null;
|
||||
|
||||
|
||||
if(class_exists("Controller_Site")){ //Если мы в CMS2
|
||||
if (class_exists("App\\Controller\\Site")) { //Если мы в CMS2
|
||||
$component = Site::loadComponent($match);
|
||||
} else {
|
||||
global $db, $registry; //
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ class Top extends Composite {
|
|||
|
||||
$init = array();
|
||||
foreach($s->_section as $key => $item) {
|
||||
/*.View_View.*/$ss = $item;
|
||||
/*.View.*/$ss = $item;
|
||||
if ($ss->codeGenerator !== null) {
|
||||
// функцию которая вычисляет а не результат
|
||||
$part = call_user_func($ss->codeGenerator, $this, $key, $value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue