HTML 그누보드 이용해서 사이트 기본 작업환경 만들기
페이지 정보

본문
=================================================================
root
/board : 그누보드 설치 <- 첨부파일 버전 5.5.8.2
/ext : .js 모듈
/favicon : 파비콘
/layout : 기본 header.php, footer.php
/lib : 자동로드 .php
/page : 실제 페이지
/res : css, img, js
/vendor : composer 로 dbal 로드
_common.php
composer.json
composer.lock
index.php
sample.php
=================================================================
/board/common.php
//==============================================================================
// 공통
//------------------------------------------------------------------------------
$dbconfig_file = G5_DATA_PATH.'/'.G5_DBCONFIG_FILE;
if (file_exists($dbconfig_file)) {
include_once($dbconfig_file);
include_once(G5_LIB_PATH.'/common.lib.php'); // 공통 라이브러리
165라인 : 여기에 아래부분 추가하기
//===========================================================
// 2022.07.01 추가부분, vendor 와 /lib 폴더의 파일 include 하기
require (G5_PATH . "/../vendor/autoload.php");
// 그누보드 설치폴더 : /board 일때
// /lib 폴더안에 있는 파일들을 로드하기
// /lib/ 부분 자동로드할때, 필요없으면 지워도 됨
$extend_file = array();
$tmp = dir(G5_PATH . "/../lib");
while ($entry = $tmp->read()) {
// php 파일만 include 함
if (preg_match("/(\.php)$/i", $entry))
$extend_file[] = $entry;
}
if(!empty($extend_file) && is_array($extend_file)) {
natsort($extend_file);
foreach($extend_file as $file) {
include_once(G5_PATH . "/../lib/" . $file);
}
unset($file);
}
unset($extend_file);
//=====================================================
첨부파일
-
www.zip (21.6M)
0회 다운로드 | DATE : 2022-07-29 16:12:01
- 이전글ckeditor 5 사용해 보기 23.01.03
- 다음글HTML form 태그 없이 새창으로 폼데이타 submit 하기 22.07.26
댓글목록
등록된 댓글이 없습니다.