Call an action inside an action/view

Hi,

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


<container>

     <div id="menu">

         <!-- some content -->

     </div>

     <div id="content">

     </div>

</container>

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.


$this->renderPartial('myView');

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:


$this->actionFoo();

I would suggest using a widget for your purpose though.