Ejemplo n.º 1
0
 public function indexAction()
 {
     if ($this->get('request')->isXmlHttpRequest() && $this->get('request')->getMethod() == 'POST') {
         $text = $this->get('request')->get('text');
         $zcode = new Zcode();
         $rep = new Response($zcode->zcodeify($text));
         return $rep;
     } else {
         throw new NotFoundHttpException();
     }
 }
Ejemplo n.º 2
0
 public function zcoderender($text)
 {
     $zcode = new Zcode();
     return $zcode->zcodeify($text);
 }