shoppingmallv2 init...

This commit is contained in:
최준흠git config git config --helpgit config --global user.name 최준흠 2023-08-11 21:31:25 +09:00
parent 55ad4b8792
commit 0e11ca3e66

View File

@ -142,6 +142,7 @@ function getFieldIndex_Row_ProductHelper($field, $entity, array $viewDatas): str
switch ($field) {
case 'title':
case 'name':
//front는 table을 사용하지 않는 점 주의
return anchor(
current_url() . '/view/' . $entity->getPrimaryKey() . '?category=' . $viewDatas['category']->getPrimaryKey(),
$value,
@ -177,7 +178,7 @@ function getFieldIndex_Row_ProductHelper_Admin($field, $entity, array $viewDatas
);
return sprintf("<td>%s</td>", getFieldForm_ProductHelper($field, $entity->$field, $viewDatas, $attributes));
}
return getFieldIndex_Row_ProductHelper($field, $entity, $viewDatas);
return sprintf("<td>%s</td>", getFieldIndex_Row_ProductHelper($field, $entity, $viewDatas));
break;
}
} //