Closed strtob closed 2 years ago
You need to update your packages via composer with all dependencies. You do not seem to have the latest release of dependencies like yii2-krajee-base
which includes the various traits containing these methods which are shown on your app as missing.
Thanks a lot kartik!
I've tried to reinstall, incl. deps, also have installed manually via composer require "kartik-v/yii2-krajee-base": "dev-master" - without success :-/
...I've insert it here:
class DetailView extends YiiDetailView implements BootstrapInterface
{
use WidgetTrait;
use TranslationTrait;
/**
* @var string view mode for the detail view
*/
const MODE_VIEW = 'view';
after translationTrait (use kartik\base\BootstrapTrait) which fix the problem...
I am also encountering same issue. tried adding "BootstrapTrait" like @strtob suggested and the error is gone. attaching reference code.
class DetailView extends YiiDetailView implements BootstrapInterface
{
use WidgetTrait;
use TranslationTrait;
use BootstrapTrait; <---Manually added. this is Missing in latest version dev-master (1.8.5) thus causing the error
@kartik-v But will you be making an official fix for this soon? or are we doing something wrong?
By the way, Hats Off to you for all the effort in making all these wonderful widgets and plugins! Much Appreciated! Cant Thank you Enough.
Thanks this will be updated.
Thankyou very much for this Quick Reponse!
Prerequisites
master
branch of yii2-detail-view.Steps to reproduce the issue
Expected behavior and actual behavior
When I follow those steps, I see...
I was expecting...
Environment
Browsers
Operating System
Libraries
Isolating the problem
I get the following error:
I've taken a look into https://github.com/kartik-v/yii2-detail-view/blob/cdeb72a7b04d1e2cc7d7c67ebcba2ee27dd0fb17/src/DetailView.php#L812
and as far is I've understood, this must be definded in the interface
https://github.com/kartik-v/yii2-krajee-base/blob/master/src/BootstrapInterface.php
but it doesnt' :-/