+ -
当前位置:首页 → 问答吧 → Jake i have a question for you :|

Jake i have a question for you :|

时间:2009-12-13

来源:互联网

I'm new here and i'm very interested in SpeedPHP.I'l learned from your website almost done, but there is a small problem...I can't use "include file"(from smarty to include the page_header.html as bellow)
引用
<{* Liên kết với phần đầu nào :) *}><{include file="page_header.html"}>--> It's not appear anything in index.php (client)

So can you (or anyone) help me?Sorrt for my bad English

作者: vituocgia   发布时间: 2009-12-13

you should look into you app setting(index.php) about the view:

       'view' => array(
                'enabled' => TRUE,
                'config' =>array(
                        'template_dir' => APP_PATH.'/tpl', // 模板目录
                        'compile_dir' => APP_PATH.'/tmp', // 编译目录
                        'cache_dir' => APP_PATH.'/tmp', // 缓存目录
                ),

<{include file="page_header.html"}>
the "page_header.html" file must locate in "APP_PATH/tpl/page_header.html"

作者: jake   发布时间: 2009-12-13

No i'll upload images from my project for you
let's see the attackment images. (I follow your guestbook production with function allow client can select template)
图片:
'700')this.width='700';if(this.offsetHeight>'700')this.height='700';" title="Click Here To EnLarge">
图片:
'700')this.width='700';if(this.offsetHeight>'700')this.height='700';" title="Click Here To EnLarge">
图片:
'700')this.width='700';if(this.offsetHeight>'700')this.height='700';" title="Click Here To EnLarge">

作者: vituocgia   发布时间: 2009-12-14

ahh i tried many time with this :( change template path many time but nothing change :(...  

作者: vituocgia   发布时间: 2009-12-14