include_once('components/product_category/model.php');
include_once('components/product_category/views/view.php');
class Controller
{
function doAction()
{
switch ($_REQUEST['p_sub'])
{
case 'list':
if($_REQUEST['opt_view'] =='insert')
{
Model::insert();
}
if($_REQUEST['opt_view'] =='delete')
{
Model::delete($_GET['del_id']);
}
if($_REQUEST['opt_view'] =='update')
{
Model::update($_GET['edit_id']);
}
$data=Model::getall(0);
View::showGrid($data);
break;
case 'form':
if($_REQUEST['opt_view'] =='edit')
{
$obj_ = Model::getSingleItem($_GET['edit_id']);
}
$cdata = Model::getParentCategory();
View::showForm($obj_,$cdata);
break;
}
}
}
?>
Webocreation
- Internship Report at a Leading Bank: Insights, Learning, and Key Takeaways - 9/29/2024 - Rupak Nepali
- 6 Core AI/ML Development Services Challenges and Their Solutions - 9/26/2024 - Rupak Nepali
- Boost Your Institution’s Communication through the GirikSMS App - 9/23/2024 - Rupak Nepali
- Opencart 4 Server Setup, SSL, FTP, Email, Database connection - 9/6/2024 - Rupak Nepali
- Domain Registration for eCommerce website - 9/5/2024 - Rupak Nepali
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment