Exemplo n.º 1
0
 public function ruleAddAction()
 {
     $target = new Targeting\Rule();
     $target->setName($this->getParam("name"));
     $target->save();
     $this->_helper->json(["success" => true, "id" => $target->getId()]);
 }