선택된 메뉴에 active 효과를 주려고 하는데요~
- 나이수
- 2
- 5,852
- 글주소
- 03-07
bootstrap/layout.php 파일을 수정해야 할거 같아서 수정하고 있습니다.
list, view, write 등의 페이지에서 게시판의 board_key 를 가져오려고 하는데요.
print_r($this->board);
위 소스를 layout.php에 출력하였더니 아래와 같이 나오더군요.
Board Object ( [CI:Board:private] => Board_post Object ( [models:protected] => Array ( [0] => Post [1] => Post_meta [2] => Post_extra_vars ) [helpers:protected] => Array ( [0] => form [1] => array [2] => number ) [view:protected] => Array ( [0] => board/bootstrap/post [1] => board/bootstrap/list ) [data:protected] => Array ( [view] => Array ( [event] => Array ( [before] => Array ( ) [step1] => Array ( ) [step2] => Array ( ) [before_layout] => Array ( ) [before_post_layout] => Array ( ) ) [post] => Array ( [post_id] => 1 [post_num] => -1 [post_reply] => [brd_id] => 1 [post_title] => test [post_content] =>
test
[post_category] => [mem_id] => 1 [post_userid] => test [post_username] => TEST [post_nickname] => TEST [post_email] => admin@mydomain.com [post_homepage] => 0 [post_datetime] => 2016-03-07 10:01:08 [post_password] => [post_updated_datetime] => 2016-03-07 10:01:08 [post_update_mem_id] => 0 [post_comment_count] => 0 [post_comment_updated_datetime] => [post_link_count] => 2 [post_secret] => 0 [post_html] => 1 [post_hide_comment] => 0 [post_notice] => 0 [post_receive_email] => 0 [post_hit] => 1 [post_like] => 0 [post_dislike] => 0 [post_ip] => [post_blame] => 0 [post_device] => desktop [post_file] => 0 [post_image] => 0 [post_del] => 0 [meta] => Array ( ) [extravars] => Array ( ) [display_name] => TEST[display_datetime] => 10:01 [is_mobile] => [category] => [display_ip] => [content] =>
너무 길어서 이까지만 잘랐습니다.
이건 일반적인 array가 아닌거 같은데, 이런걸 처음봐서 어떻게 해야할지 모르겠네요.
layout.php에서 board_key를 출력하려면 어떻게 해야할지요?