Example #1
0
 /**
  * Get a single technique.
  * Used for ajax requests.
  *
  * @param \Model\Technique $technique
  *
  * @return void
  */
 public function getTechnique($technique)
 {
     $this->doRender = false;
     if (empty($technique)) {
         $this->echoAjaxResponse(array('ok' => false, 'error' => 'noTechniqueFound'));
     } else {
         $this->echoAjaxResponse(array('ok' => true, 'data' => $technique->getAsArray()));
     }
 }