public function postdeleteAction() { $id = $this->_getParam("id"); $this->_product->delete($id); $this->redirect("index", "courses", "admin"); }
public function remove($productType, $id) { $productEntity = $this->_product->get($productType, $id); $this->_setSession($productType, $productEntity, 0); }
public function indexAction() { $coursess = $this->_product->getsVisibleCourses("date_add ASC", null, null, TCVM::UseCache()); $this->assign("coursess", $coursess); $this->title("TCVM Australia | Courses"); }