Skip to content
Advertisement

TypeError Yii2 Framework

yiibaseView::{closure}(): Argument #2 ($model) must be of type Libro, appmodelsLibro given

in C:xampphtdocsbibliotecaviewslibroindex.php

JavaScript

]); ?>

Advertisement

Answer

Change your closure from:

JavaScript

Into:

JavaScript

In other words, use right class as type (appmodelsLibro instead of Libro).

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement