function menuAction() { $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); $id = $this->_request->getParam('id'); $mn = new Admin_Model_Products(); $mn->hop_option($id); // echo "<select name=\"product\">"; // // $cnDB= Zend_Registry::get('connectDB'); // // $query="SELECT * FROM menu where category_id like '$id' order by position ASC "; // $stml= $cnDB->prepare($query); // $stml->execute(); // while ($result=$stml->fetch(PDO::FETCH_ASSOC)){ // $id=$result['id']; // $title=$result['title']; // // echo "obj.options[obj.options.length] = new Option('$title','$id');\n"; // echo "<option value=\"$id\">$title</option> "; // } // // // // echo "</select>"; // }
function menuAction() { $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); $id = $this->_request->getParam('id'); $mn = new Admin_Model_Products(); $mn->hop_option($id); }