in the index.php, i put this code in.
$smarty->assign('goods_commnet', get_comment_count());
function get_comment_count(){
return 2;
}
then in the index.dwt. i put the output
{$goods_commnet}.
the smarty templae is ok.because when i instead the function to 2. the page can show 2.
the error tip is “can’t get the function get_comment_count() defined?
What will happen when You swich the order: