<?php
//сюда приходят запросы через ajax
class ZoneController extends Controller{
use Loader;
public $group_id;
public $group_token ;
public $user_id;
public $user_token;
public function __construct(){
//$this->design();
$this->memory();
$this->getAccess();
$this->web_dir_path = 'web';
$this->web_dir_main_path = 'web';
}
public function action_getComponents(){
$zoneName = $this->get('zoneName');
return ZoneService::Load()->getComponents($zoneName); //Air\Page::Load()->getZoneItems(название зоны);
}
}