Dear Zend mailing list,
I started a new project in the company where I work for, it is ZF1 based and now I had this request that is to built the application never reloading the whole page, just update the html body with the data taken by various actions that respond with json or other format data, I thought that use contextSwitch maybe could help.
The first question I want to ask is if it is a good idea to built an application using this approach and if there are benefits in terms of performances rather than reload the whole page with all head links and scripts.
Then my doubts are how to manage the update of every component that needs to be refreshed every page change, like menus, breadcrumbs and pagination, could be a solution to create an action plugin that adds these kind of data to the view ( like $this->view->breadcrumbs = {breadcrumbs html data} ), that will be subsequently returned eventually in json format using ContextSwitch?
I hope somebody has experience about this issue and want to share some knowledge
Thanks in advance!
Best regards
Sergio Rinaudo