Class “kartik\widgets\ActiveForm” not found

Hello I have a problem with kartik\widgets\ActiveForm; :


Class “kartik\widgets\ActiveForm” not found

    1. in C:\xampp\htdocs\yiitest20240307_03\backend\views\numberline\numberlinecreatedetail.phpat line 12

use common\models\Numberheader;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap5;
//use yii\bootstrap5\ActiveForm;
use kartik\builder\Form;
use kartik\widgets;
use kartik\widgets\ActiveForm;

$form = ActiveForm::begin([‘type’=>ActiveForm::TYPE_INLINE]);

Any ideas ? Thanks

Did you installed Karitk Activeform using composer?

Yes - I have this in composer :
“kartik-v/yii2-widget-activeform”: “dev-master”

Wrong namespace. from extension github
use kartik\form\ActiveForm;