Answer the question
In order to leave comments, you need to log in
Class not found... So how do you extend the Yii2 widget class?
I put the Breadcrumbs.php file into the components
folder with the following content:
<?php
namespace app\components;
use yii\bootstrap\Html;
class Breadcrumbs extends \yii\widgets\Breadcrumbs
{
///
}
<?php
use app\components\Breadcrumbs;
echo Breadcrumbs::widget([]);
Answer the question
In order to leave comments, you need to log in
In the error app\components1
In the code namespace app\components;
something is wrong here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question