diff --git a/app/Entities/CategoryEntity.php b/app/Entities/CategoryEntity.php index a12025f..29411f8 100644 --- a/app/Entities/CategoryEntity.php +++ b/app/Entities/CategoryEntity.php @@ -19,4 +19,12 @@ class CategoryEntity extends BaseHierarchyEntity } //추가기능 + //CommonHelper에서 사용 + public function getRole($field = 'isaccess') + { + return array_key_exists( + $field, + $this->attributes + ) ? $this->attributes[$field] : DEFAULTS['ROLE']; + } } diff --git a/app/Views/front/board/index.php b/app/Views/front/board/index.php index 3cd7d73..ac86f94 100644 --- a/app/Views/front/board/index.php +++ b/app/Views/front/board/index.php @@ -2,7 +2,7 @@ section('content') ?>
-
getHead()) ?>
+
head) ?>
include('templates/front/index_head') ?>
@@ -49,6 +49,6 @@ -
getTail()) ?>
+
tail) ?>
endSection() ?> \ No newline at end of file diff --git a/app/Views/front/board/insert.php b/app/Views/front/board/insert.php index 90e6465..9b5d077 100644 --- a/app/Views/front/board/insert.php +++ b/app/Views/front/board/insert.php @@ -2,7 +2,7 @@ section('content') ?>
-
getHead()) ?>
+
head) ?>
@@ -19,6 +19,6 @@
-
getTail()) ?>
+
tail) ?>
endSection() ?> \ No newline at end of file diff --git a/app/Views/front/board/reply.php b/app/Views/front/board/reply.php index 8bf609f..7715d31 100644 --- a/app/Views/front/board/reply.php +++ b/app/Views/front/board/reply.php @@ -2,7 +2,7 @@ section('content') ?>
-
getHead()) ?>
+
head) ?>
@@ -19,6 +19,6 @@
-
getTail()) ?>
+
tail) ?>
endSection() ?> \ No newline at end of file diff --git a/app/Views/front/board/update.php b/app/Views/front/board/update.php index f759071..a25d8a6 100644 --- a/app/Views/front/board/update.php +++ b/app/Views/front/board/update.php @@ -2,7 +2,7 @@ section('content') ?>
> -
getHead()) ?>
+
head) ?>
@@ -19,6 +19,6 @@
-
getTail()) ?>
+
tail) ?>
endSection() ?> \ No newline at end of file diff --git a/app/Views/front/board/view.php b/app/Views/front/board/view.php index 4818a91..89e7e88 100644 --- a/app/Views/front/board/view.php +++ b/app/Views/front/board/view.php @@ -2,7 +2,7 @@ section('content') ?>
-
getHead()) ?>
+
head) ?>
@@ -16,6 +16,6 @@
-
getTail()) ?>
+
tail) ?>
endSection() ?> \ No newline at end of file diff --git a/app/Views/front/product/addCart.php b/app/Views/front/product/addCart.php index 8bbf4b1..4a9b058 100644 --- a/app/Views/front/product/addCart.php +++ b/app/Views/front/product/addCart.php @@ -1,20 +1,20 @@ 'post']) ?> getPrimaryKey()) ?> - + "구매수량 선택"]; -for ($i = 1; $i <= $viewDatas['entity']->getStock(); $i++) { +for ($i = 1; $i <= $viewDatas['entity']->stock; $i++) { $quantityOptions[$i] = $i . "개"; } ?> 구매 수량 : "cal_price(this.options[this.selectedIndex].value)"]); ?> -구매 금액 : getPrice() * 1) ?>원 -getStock(), array("class" => "btn btn-outline btn-primary")); ?> +구매 금액 : price * 1) ?>원 +stock, array("class" => "btn btn-outline btn-primary")); ?>