Exemplo n.º 1
0
 public function resultCodeAction()
 {
     $search_word = $this->_getParam('search_word', '');
     $this->view->word = $search_word;
     $index = new Application_Model_DbTable_Index();
     $parts = $index->getAutoPartByCode($search_word);
     if ($parts['status']) {
         $this->view->autopart = $parts['value'];
     }
 }