1234567891011121314151617181920212223242526 |
- <?php
- defined('YII_DEBUG') or define('YII_DEBUG', true);
- defined('YII_ENV') or define('YII_ENV', 'dev');
- require 'api/vendor/autoload.php';
- require 'api/vendor/yiisoft/yii2/Yii.php';
- $config = require 'api/config/web.php';
- (new yii\web\Application($config));
- $locomotiveModel = new app\models\LocomotiveModel();
- //$lcontr = new \app\controllers\LocomotiveController();// LocomotiveController();
- //$params['number'] = '0460Б';
- $params['section_id'] = '3ac3f7e5-4846-11e3-9348-ac162db0b20c';
- //$params['subnumber'] = '11384880';
- //$url = Yii::$app->params['api']['domain'] . Yii::$app->params['api']['pathListOfSections'];
- $result = $locomotiveModel->getSectionRemarks($params);
- //echo json_decode($result);
- var_dump( $result);
- //string(72) "{"error":"Невозможно найти секцию с id undefined"}"
- ?>
|