Call another controller action using renderPartial

Hello,

i have problem in calling action from different controller using renderPartial.

I have one controller SiteController. In which i call action from another controller




$this->renderPartial('Abc/_jobList',array('value'=>$value));



But i get following error

SiteController cannot find the requested view "Abc/_jobList".

How can i solve it??

You can use the alias path:


$this->renderPartial('application.views.othercontroller._jobList',array('value'=>$value));

Thanks. It helps me

You can use shortly:




$this->renderPartial("//Abc/_jobList", array('value' => $value));

$this->renderPartial("//post/_view", array('value' => $value));



HELLO

    it is giving me error do we need to make any relation for above statement,It is giving me undefined model error

Actually Im Call _form page of another model on current working model have any suggestions plz help me thank you…!

No we don’t require define any relation. you have to just pass


$this->renderPartial('application.views.othercontroller._jobList',array('value'=>$value));


othercontroller= your controller where _form belongs to.

_jobList = your _form of that controller



Try it

It looks like your problem has been resolved, congratulations.

[color=#C9C9C9]galaxy tab 4 7.0 hülle[/color]