Dhara
(Prajapatidhara)
January 19, 2015, 5:50am
1
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??
joblo
(Joe)
January 19, 2015, 6:20am
2
You can use the alias path:
$this->renderPartial('application.views.othercontroller._jobList',array('value'=>$value));
demi
(Ivan Orlov)
January 21, 2015, 10:21am
4
You can use shortly:
$this->renderPartial("//Abc/_jobList", array('value' => $value));
$this->renderPartial("//post/_view", array('value' => $value));
Dhananjay
(Dhananajay Modagekar)
January 21, 2015, 10:30am
5
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…!
Dhara
(Prajapatidhara)
January 23, 2015, 5:27am
6
Dhananjay:
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
HayleySwp
(Annette Lauris)
January 23, 2015, 6:03am
7
It looks like your problem has been resolved, congratulations.
[color=#C9C9C9]galaxy tab 4 7.0 hülle[/color]