#Horizon API module Yii2 modulis Horizon RESTam https://horizon-rest-doc.visma.lv/lv
Modeļi
- TNdmNom
Modeļu funkcionalitāte
- save() kā insert
- save() kā update
- findOne($id)
- findOne(['fieldName'=>$fieldValue])
- delete()
The preferred way to install this extension is through composer.
Either run
$ composer require d3yii2/d3horizon "*"
or add
"d3yii2/d3horizon": "*"
to the require
section of your composer.json
file.
Definē kā komonenti
'horizonRest' => [
'class' => 'd3yii2\d3horizon\components\RestConnection',
'baseUrl' => getenv('HORIZON_API_BASE_URL'),
'horizonApiUsername' => getenv('HORIZON_API_USERNAME'),
'horizonApiPassword' => getenv('HORIZON_API_PASSWORD'),
'enableExceptions' => true,
],