head.php 에서 게시글 제목

head.php 에서 게시글 제목

QA

head.php 에서 게시글 제목

본문

안녕하세요

 

head.php 파일에서 게시판내 게시글을 들어갔을 때 ,head.php 단에서 해당 게시글의 제목을 얻을 수 있는 코드가 있나요?

 

아니면 직접 작성해야 하나요??

이 질문에 댓글 쓰기 :

답변 2

$view['wr_subject'];

 

해보세요~

$view['subject']; 하시면 될거에요.

/bbs/view.php 에서 만들어지는 거고, head.sub.php에서 불러와질거에요.

 


view => Array
(
    [wr_id] => 8
    [wr_num] => -3
    [wr_reply] => A
    [wr_parent] => 8
    [wr_is_comment] => 0
    [wr_comment] => 9
    [wr_comment_reply] =>
    [ca_name] => 카테고리-2
    [wr_option] => html1,mail
    [wr_subject] => Re: cheditor5로 변경하여 테스트 - 수정 테스트 - 답변글 테스트
    [wr_content] => <p>답변글도 입력을 해보아야겠죠 ^^</p>
<p>아자 아자 달려봅니다.</p>
    [wr_seo_title] => re-cheditor5로-변경하여-테스트-수정-테스트
    [wr_link1] => http://www.sir.kr
    [wr_link2] => http://mansu.kim
    [wr_link1_hit] => 1
    [wr_link2_hit] => 0
    [wr_hit] => 2
    [wr_good] => 0
    [wr_nogood] => 0
    [mb_id] => hunnovsi
    [wr_password] =>
    [wr_name] => 최고관리자
    [wr_email] => *** 개인정보보호를 위한 이메일주소 노출방지 ***
    [wr_homepage] => http://mansu.kim
    [wr_datetime] => 2020-06-30 22:35:25
    [wr_file] => 2
    [wr_last] => 2020-07-02 13:36:47
    [wr_ip] => 127.0.0.1
    [wr_facebook_user] =>
    [wr_twitter_user] =>
    [wr_1] =>
    [wr_2] =>
    [wr_3] =>
    [wr_4] =>
    [wr_5] =>
    [wr_6] =>
    [wr_7] =>
    [wr_8] =>
    [wr_9] =>
    [wr_10] =>
    [is_notice] =>
    [subject] => Re: cheditor5로 변경하여 테스트 - 수정 테스트 - 답변글 테스트
    [content] => <p>답변글도 입력을 해보아야겠죠 ^^</p>
<p>아자 아자 달려봅니다.</p>
    [comment_cnt] => <span class="cnt_cmt">9</span>
    [datetime] => 2020-06-30
    [datetime2] => 06-30
    [last] => 2020-07-02
    [last2] => 13:36
    [name] => <span class="sv_wrap">...</span>
    [reply] => 20
    [icon_reply] => <img src="D:/ski/icon_reply.gif" class="icon_reply" alt="답변글">
    [icon_link] => <i class="fa fa-link" aria-hidden="true"></i>
    [ca_name_href] => http://hu0%EB%A6%AC-2
    [href] => http://hunnov5.tanotice&wr_id=8
    [comment_href] => http://hunnotable=notice&wr_id=8
    [icon_new] => <img src="D:/_/Hun" alt="새글">
    [icon_hot] => <i class="fa fa-heart" aria-hidden="true"></i>
    [icon_secret] =>
    [link] => Array
        (
            [1] => http://www.sir.kr
            [2] => http://mansu.kim
        )
    [link_href] => Array
        (
            [1] => http://hunnotice&wr_id=8&no=1
            [2] => http://hunnmp;wr_id=8&no=2
        )
    [link_hit] => Array
        (
            [1] => 1
            [2] => 0
        )
    [file] => Array
        (
            [count] => 2
            [0] => Array
                (
                    [href] => http://hunphp?bo_table=notice&wr_id=8&no=0
                    [download] => 0
                    [path] => http://hunn/file/notice
                    [size] => 175.4K
                    [datetime] => 2020-06-30 22:35:25
                    [source] => Logo_tank_square2.png
                    [bf_content] => aaaaaaaaaaaaaaaa
                    [content] => aaaaaaaaaaaaaaaa
                    [view] => <a href="http://h26bcdeec1c864349435ba03f.png" alt="aaaaaaaaaaaaaaaa"  width="428" height="282" ></a>
                    [file] => 2130706433bcdeec1c864349435ba03f.png
                    [image_width] => 428
                    [image_height] => 282
                    [image_type] => 3
                    [bf_fileurl] =>
                    [bf_thumburl] =>
                    [bf_storage] =>
                )
            [1] => Array
                (
                    [href] => http://hunno_table=notice&wr_id=8&no=1
                    [download] => 0
                    [path] => http://hunnata/file/notice
                    [size] => 1.2M
                    [datetime] => 2020-07-02 12:42:37
                    [source] => 창업사업통합정보관리시스템 사용매뉴얼[01.사업신청_회원,기관정보등록]_v2.5.pdf
                    [bf_content] => 창업을 사업하니 통합하는 정보인가?
                    [content] => 창업을 사업하니 통합하는 정보인가?
                    [view] =>
                    [file] => 2130706433_U3AZDbar_8a16e3271554a8a8523a3924d92491db3788e3ac.pdf
                    [image_width] => 640
                    [image_height] => 480
                    [image_type] => 0
                    [bf_fileurl] =>
                    [bf_thumburl] =>
                    [bf_storage] =>
                )
        )
    [icon_file] => <i class="fa fa-download" aria-hidden="true"></i>
)

 

 

답변을 작성하시기 전에 로그인 해주세요.
전체 123,478 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT