At my work we have a very old symfony app (developed by the guy who have my position before the guy I came to replace), and today a customer call to us saying that a "print this article" functionality doesn't work in Chrome. The functionality is simple: it opens the Browsers "Print dialog" and let you print the article. The action works in every browser except in Chrome (it works even in Safari) When I click the url in Chrome, it opens a new windows and inmediatily closed it. I don't have a clue of what could happen because I never have program a symfony app before.
This is the code I found:
public function executeImprimir(sfWebRequest $request) {
$this->forward404Unless($this->articulo = ArticuloPeer::retrieveByPk($request->getParameter('id')), sprintf('Object articulo does not exist (%s).', $request->getParameter('id')));
$c = new Criteria();
$c->add(ArticuloContPeer::ARTICULO_ID, $request->getParameter('id'));
$aux = ArticuloContPeer::doSelect($c);
$this->contenido = $aux[0];
$this->setLayout(false);
}
}
Any clue? could someone help me? could someone guide me in the correct path to track the problem?
Thanks in advance