This commit is contained in:
2024-01-29 21:22:26 +07:00
parent 2e4cf30a14
commit a863974dff
3 changed files with 21 additions and 20 deletions

View File

@@ -1,6 +1,14 @@
<?php
use Hura8\Components\Product\AdminController\AProductController;
$objAProductController = new AProductController();
$product_id = getRequestInt('id', 0);
$product_info = $objAProductController->getFullInfo($product_id);
$view_part = getRequest("part", "basic");
$view_part_file = str_replace("-", "_", $view_part);
@@ -14,20 +22,13 @@ if(@file_exists($part_file)) {
return [
"product_info" => _get_product_info(),
"product_info" => $product_info,
"product_menu" => _get_product_menu(),
"view_part" => $view_part,
];
// helpers
function _get_product_info() {
return [
"id" => 12,
"title" => "Máy in mã vạch MH241",
];
}
function _get_product_menu() {
$current_selected = getRequest('part', 'basic');
$product_menu = array(