Call an action inside an action/view


I have a view like this: (this is from a view called from an action, and not from a layout page)


     <div id="menu">

         <!-- some content -->


     <div id="content">



And I would like to call an action and renderPartial its view inside #content.

I’ve added this into #content and it displayed the wanted view, but I would also like to call his action method.


The initial idea was to do this with Ajax but it interferes with a wysiwyg that I’m using.

Any suggestions please.

For example you have an action inside the same controller you are using:

public function actionFoo()



You can call it inside the view as:


I would suggest using a widget for your purpose though.