function display() { switch (JRequest::getVar('view')) { case "testimonials": JRequest::setVar('view', 'eztestimonials'); break; case "edit": JRequest::setVar('view', 'editbox'); break; default: JRequest::setVar('view', 'eztestimonials'); } switch (JRequest::getVar('task')) { case "remove": AdminTestimonController::delete(); break; case "unpublish": AdminTestimonController::unpublish(); break; case "publish": AdminTestimonController::publish(); break; case "save": AdminTestimonController::saveEdit(); break; } parent::display(); }