A
A
Alexander Ivanov2015-05-19 19:06:09
Yii
Alexander Ivanov, 2015-05-19 19:06:09

Yii2 is already installed on the hosting, how to put widgets from krajee on it?

I put the kartik-v folder in vendor.

<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use kartik\datecontrol\Module;
?>
  <?= $form->field($model, 'dateAdd_patient')->widget(DateControl::classname(), [
    'type'=>DateControl::FORMAT_DATETIME
  ]);
  ?>

Writes that the class is not found Class 'DateControl' not found.
Tried with composer
$ php composer.phar require kartik-v/yii2-datecontrol "dev-master"
CreateProcess() failed with error code 2:
Не удается найти указанный файл

I have not tried this method:
or add:
    "kartik-v/yii2-datecontrol": "dev-master"
to the require section of your composer.json file. Then run:
    php composer.phar update

because I don't understand where specifically to make the entry "kartik-v/yii2-datecontrol": "dev-master".
source

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vit, 2015-05-19
@cimonlebedev


Could not open input file: composer.phar
Well, they tell you in plain text what the problem is.

H
He11ion, 2015-05-19
@He11ion

https://getcomposer.org/doc/01-basic-usage.md
try composer update after composer.json changes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question