renderpartial from renderpartial

how i can renderpartial from renderpartial ?

1 st

   renderPartial('//../modules/analiz/views/analizCreate/shihta')

and from shihta

     $this->renderPartial('_table'

SiteController не может найти представление "_table"

When you do renderPartial using $this->renderPartial(’_table’), in the ‘_table.php’ view file use another renderPartial $this->renderPartial(’_table1’)

what?

from main page i have tree with ajaxlink

I first displays the first view for file \protected\modules\analiz\views\analizCreate\shihta.php


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

and in first view (shihta.php) I kind of laid


$this->renderPartial('_table',

and




AnalizCreateController controller can not find the idea "_table".

How do I specify the path to


\protected\modules\analiz\views\analizCreate\_table.php

?

Try render file like this


Yii::app()->controller->renderFile(Yii::app()->basePath.'/<view-path>',$params);

OR


$this->renderPartial("/analiz/views/analizCreate/_form", array('data'=>$data));

OR


$this->renderPartial('application.modules.analiz.views.analizCreate._form', array('data'=>$data));

You have to identify as the tree folder like this: protected/modules/analiz/views/analizCreate/shihta

OR


$this->renderPartial("//analizCreate/_form"");

This can be seen in the documentation

Reference link