Fresh Data By Asking Propel 2 Times (php)

2016/08/29 22:39:31
Author Profile Picture

posted by

@florianpreusner

Yes, why not asking the database two times for a contact? Keeping it fresh!


if(is_object(KontaktPeer::retrieveByPK($request->getParameter('contact_id')))) {
  $this->contact = KontaktPeer::retrieveByPK($request->getParameter('contact_id'));
} else {
  $this->redirect('@contact_index');
}
Share on Google+