Hi,
I'm displaying a list of contacts on a page, when a contact is added I fetch
the new list using Ajax, my action is set in the init() of the controller as
an ajax action.
public function init()
{
$contextSwitch = $this->_helper->getHelper('AjaxContext');
$contextSwitch->addActionContext('contactlist', 'html')
->initContext();
}
This works fine but my problem is with the initial page load. Im trying to
display the action using the action view helper,
$this->action('contactlist', 'user'); The problem is that this is trying to
load view script contactlist.phtml which doesn't exist.
Does anyone know of a solution, I don't want to duplicate my code by having
2 view scripts.
The 2 solutions I can think of are to create 2 view scripts, and just put an
include() in 1 of them, or use javascript to load the content on initial
load which I also want to avoid.
Thanks for any advise.
--
View this message in context:
http://www.nabble.com/Action-view-helper---ajaxcontext-tp21295379p21295379.html
Sent from the Zend Framework mailing list archive at Nabble.com.