0
HTML 코드 HTML 대신 PHP에서 유식 변수 :전화
<html><body> {section name=a loop=$items} {$items[a].title} {include file="/directory/showstuff.html" video=$items[a]} {/section} </body> </html>
PHP 코드 :
$ PID = '12';
$ items = $ cbvid-> get_channel_items ($ pid);
assign ('items', $ items);
정수가 인 것은 완벽하게 작동합니다. 내 PHP 코드입니다. 그러나 정수 을 추가하고 html 코드에서 호출하려고했지만 작동하지 않았습니다.
내가 시도 :<html><body> {section name=a loop=$cbvid->get_channel_items(12)} {$items[a].title} {include file="/directory/showstuff.html" video=$items[a]} {/section} </body> </html>
그러나 그것은 작동하지 않았다. 내가 어떻게 해?
매우 감사드립니다. :) –