Posts Tagged with renderpartial

Displaying 1-2 of 2 results.
Resolved: Yii2 basic render path problem in modules
posted by admin on March 1, 2017
In my layouts I have code with render

. . .
<div class="wrap">
<?= $this->render('/partials/menu'); ?>
. . .

And when I run my Module I have got error

The view file does not exist: The view file does not exist: /var/www/html/vktracker2/modules/admin/views/partials/menu.php

I tried to fix by

<?= $this->render(dirname(_FILE__) . '/partials/menu'); ?>

But it didn't helpRead more
Resolved: Yii get renderpartial and store in value
posted by admin on May 22, 2016
I want to store renderpartial, and dont want to echo

<?php $this->renderPartial($view, $data); ?>

It echo content automatically.
I want to store it like

$value = "my value";
$value .= $this->renderPartial($view, $data);
Read more