묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
애드온의 변수를 스킨에 출력 그리고 스킨에서 php사용
2010.07.18 16:13
if($called_position == 'after_module_proc'){ $ttest='ok'; function test1(){ return 'ok'; } function test2(){ global $ttest; return $ttest; } }
test.addon.php파일의 내용입니다.
스킨에서 {test1()} 이건 잘 출력이 되는데 {test2()}이건 출력이 되지 않습니다. 이유가 뭔가요?
그리고 board모듈 스킨에서 php문법을 그대로 사용해도 되는지요. 아래와 같은 코드를 적어보니 잘 출력이 되긴 하는데...
<? $test='test'; echo $test; ?>
http://www.xpressengine.com/19022064
답변 드렸습니다. ^-^