public function getAction($element = '') { //$this->_helper->layout->disableLayout(); $type = $this->_request->getParam('sub0'); $name = $this->_request->getParam('sub1'); if ($type == 'all' or $name == 'all') { $this->view->elements = Svg_Element::get_all($type, $name); } else { if (Svg_Element::exists($type, $name)) { $this->view->elements = array(array('type' => $type, 'name' => $name)); } } }