private function addRelation() { if ($this->registry->getObject('authenticate')->isLoggedIn() == true) { $subs = new Subscriptions($this->registry); $types = $subs->getType(true); $this->registry->getObject('template')->addTemplateBit('form_relationship', 'templates/form_relationship.php'); //echo $types; $this->registry->getObject('template')->getPage()->addPPTag('relationship_types', array('SQL', $types)); } else { $this->registry->getObject('template')->getPage()->addPPTag('relationship_types', '<!-- relationship types dropdown -->'); } }