<?
return [
'controllers' => [
'value' => [
'namespaces' => [
'\\Local\\Lib\\Controller' => 'api',
],
],
'readonly' => true,
],
];
?>
<?php
namespace Local\Lib\Controller;
use Bitrix\Iblock\ORM\Query;
use Bitrix\Main\Engine\Controller;
use Bitrix\Main\ORM\Fields\Relations\Reference;
use Bitrix\Main\ORM\Query\Join;
use \Bitrix\Main;
use \Bitrix\Main\Localization\Loc;
use \Bitrix\Main\Type;
use \Orm\InfoBooks\Utable;
use \Bitrix\Main\Engine\ActionFilter;
use Bitrix\Main\Application;
class Test extends Controller {
public function configureActions()
{
return [
'books' => [
'prefilters' => [
],
'-prefilters' => [
\Bitrix\Main\Engine\ActionFilter\Authentication::class
],
]
];
}
protected function checkModule ()
{
if(!Main\Loader::includeModule('testmodules.d')) {
throw new Main\LoaderException(Locc::getMessage('Модуль не установлен'));
}
}
private function addbook($response)
{
}
public function booksAction()
{
$this->addbook($arRequest);
}
}
ReflectionException Object
(
[message:protected] => Class \Local\Lib\Controller\test does not exist
[string:Exception:private] =>
[code:protected] => -1
[file:protected] => F:\OpenServer\domains\platinum-bitrix\bitrix\modules\main\lib\engine\resolver.php
[line:protected] => 31
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => F:\OpenServer\domains\platinum-bitrix\bitrix\modules\main\lib\engine\resolver.php
[line] => 31
[function] => __construct
[class] => ReflectionClass
[type] => ->
[args] => Array
(
[0] => \Local\Lib\Controller\test
)
)
[1] => Array
(
[file] => F:\OpenServer\domains\platinum-bitrix\bitrix\modules\main\lib\engine\router.php
[line] => 142
[function] => getControllerAndAction
[class] => Bitrix\Main\Engine\Resolver
[type] => ::
[args] => Array
(
[0] => testmodules
[1] => testmodules.d
[2] => api.test.greet
)
)
[2] => Array
(
[file] => F:\OpenServer\domains\platinum-bitrix\bitrix\modules\main\lib\httpapplication.php
[line] => 107
[function] => getControllerAndAction
[class] => Bitrix\Main\Engine\Router
[type] => ->
[args] => Array
(
)
)
[3] => Array
(
[file] => F:\OpenServer\domains\platinum-bitrix\bitrix\modules\main\services\ajax.php
[line] => 29
[function] => run
[class] => Bitrix\Main\HttpApplication
[type] => ->
[args] => Array
(
)
)
[4] => Array
(
[file] => F:\OpenServer\domains\platinum-bitrix\bitrix\services\main\ajax.php
[line] => 1
[args] => Array
(
[0] => F:\OpenServer\domains\platinum-bitrix\bitrix\modules\main\services\ajax.php
)
[function] => require
)
)
[previous:Exception:private] =>
)
this.table.DAYS
30 элементов
и
this.table.WORK так же 30 элементов