1.

How To Call Two Different Views From Same Action?

Answer»

Example1:

Public function indexAction() { If(condition) $this->render(‘yourview.phtml’); Else Index.phtml; Example2: Public function indexAction() { }

Now in your index.phtml you can have this statement to CALL other VIEW
$this->action(‘action name’,’controller name’,’MODULE name’,ARRAY(‘parameter name’=>’parameter value’));

Example1:

Now in your index.phtml you can have this statement to call other view
$this->action(‘action name’,’controller name’,’module name’,array(‘parameter name’=>’parameter value’));



Discussion

No Comment Found