D
D
des1roer2016-02-24 07:52:38
Yii
des1roer, 2016-02-24 07:52:38

Yii renderPartial inside renderPartial?

there is a view (protected\modules\analiz\views\analizCreate\shihta.php) and a nested view (\protected\modules\analiz\views\analizCreate\_table.php). for the first one I specify the full path

$content = $this->renderPartial('application.modules.analiz.views.analizCreate.shihta');

the shihta got a
renderPartial('_table')
gettin

SiteController cannot find view '_table'.

you need to specify a direct path or something

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Voronkov, 2016-02-24
@DmitryVoronkov

_table must be in the same directory (protected\modules\analiz\views\analizCreate\), and you have:
(\protected\modules\analiz\views\analizCreate_table.php)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question