public function render() { $options = array("links" => $this->get_pages(), "view" => $this->view); $navbar = new Navbar($options); return $navbar->render(); }
public function get_subnav() { if ($this->parent_id == 0) { $p = $this; } else { $p = ORM::factory('page', $this->parent_id); } $options = array("links" => $p->get_children(), "view" => 'includes/subnav'); $navbar = new Navbar($options); return $navbar->render(); }