I’m facing a little problem, i want to create a local version of my application that can be used also when no internet connections are available.
To do this i need to update all the data stored during the offline session when internet is available again.
Since i cannot access directly the database from local i decided to post all the data to an action and then perform the insertion.
I’ve already tried with “redirect” and “forward” methods but they didn’t work, how can i do?
This is the "local" action
public function actionSynch()
{
//....
//query for all the local records
//.....
CController::forward('http://www.test.com/index.php?r=site/synch',array('result'=>$result));
}