Ejemplo n.º 1
0
 /** An individual mack type
  * @access public
  * @return void
  * @throws Pas_Exception_Param
  */
 public function typeAction()
 {
     if ($this->getParam('id', false)) {
         $this->view->type = $this->_mackTypes->fetchRow($this->_mackTypes->select()->where('type = ?', urlencode($this->getParam('id'))));
     } else {
         throw new Pas_Exception_Param($this->_missingParameter, 500);
     }
 }
Ejemplo n.º 2
0
 public function typeAction()
 {
     $types = new MackTypes();
     $this->view->type = $types->fetchRow($types->select()->where('type = ?', urlencode($this->_getParam('id'))));
 }