public function deleteAction() { $this->disableRender = true; $typeName = $this->getParam('name'); K_Tree_Types::delete($typeName); K_cupTree::dTypeNodes($typeName); echo 'OK'; }