Làm cách nào để hiển thị tệp xem trong tệp chế độ xem chỉ mục của mô-đun hồ sơ. Tôi cố gắng này:Hiển thị chế độ xem Yii2
<?=$this->render('/product/product/_search')?>
Đây là lỗi tôi nhận được:
The view file does not exist: C:\OpenServer\domains\zuppermart\frontend\modules\profile\views\product/product/_search.php`
Tôi cũng đã cố gắng <?=$this->render('//product/product/_search')?>
Và tôi nhận được lỗi này:
The view file does not exist: C:\OpenServer\domains\zuppermart\frontend\modules\profile\views\profile\modules//product/product/_search.php
con đường xem actial là gì? Và từ nơi bạn đang cố gắng làm cho nó? – arogachev
'C: \ OpenServer \ domains \ zuppermart \ frontend \ modules \ product \ views \ product \ _search.php' đây là đường dẫn thực tế của tệp xem tìm kiếm –
Và từ nơi bạn đang cố gắng hiển thị nó? – arogachev