<?php require_once('../smarty/libs/Smarty.class.php'); $smarty->template_dir = '../templates/admin/'; $smarty->compile_dir = '../templates_c/'; $smarty->config_dir = '../configs/'; $smarty->cache_dir = '../cache/'; $smarty = new Smarty; $smarty->display('index.tpl'); ?>
Normalnie wszystko trzymam w templates, ale dla admin robie osobny katalog. Co tu jest zle?