Reputation: 535
When I call the $this->renderPartial()
from a view it is not working at all.
Code I tried:
$this->renderPartial("_selectedalbums");
the "_selectedalbums" view is in the same directory.
What I am missing, please help.
Upvotes: 0
Views: 3407
Reputation: 4357
If you are passing values to the view there might be chances that those variables may not be properly assigned or initialized. Check if all those passing values are getting values. Also turn your error reporting on and see. Hope it helped.
Upvotes: 2
Reputation: 1310
Given that the partial view is in the same view folder as the controller you are running you should check your spelling. Case sensitive file systems will require you to be exact (_selectedAlbums
vs _selectedalbums
).
Upvotes: 1