|
发表于 2009-8-7 18:52:35
|
显示全部楼层
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
function smarty_function_product($params, &$smarty){
$id = (int)$params['id'];
$CI= &get_instance();
$CI->load->model('product');
if($id){
return $CI->product->get_products_by_id($id);
}
}
?> |
|