a eto kak?
if ($category_id != '$category_id' )
??? toz dva $category_id ;]]]
cio vam ne poniatnoje?
toz pisal vsio pravelno
vot s proverkoi na fail..
mozno jescio vmesto "imia" prikrutit` $config['skin']
togda i po skinam budit rabotat...
toz vsio jasno napisanno bylo...
eh...
if ($category_id != '$category_id' )
??? toz dva $category_id ;]]]
cio vam ne poniatnoje?
toz pisal vsio pravelno
vot s proverkoi na fail..
PHP:
if (isset($category_id) && intval($category_id) && is_readable(ROOT_DIR.'/templates/imia/main_'.$category_id.'.tpl')) {
$tpl->load_template("main_".intval($category_id) .".tpl");
} else {
$tpl->load_template("main.tpl");
}
mozno jescio vmesto "imia" prikrutit` $config['skin']
togda i po skinam budit rabotat...
toz vsio jasno napisanno bylo...
eh...