|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Inok Smarty n00b
Joined: 25 Jan 2006 Posts: 1
|
Posted: Wed Jan 25, 2006 4:36 pm Post subject: Work under Windows and don't work under FreeBDS. Why? |
|
|
Ничего не могу понять, один и тот же код работает под Windows, и ничего не далет под Free BDS. Самый тривиальный пример:
Code: | <?PHP
require( "smarty/Smarty.class.php" );
define ( 'SMARTY_DIR', 'smarty/' );
$smarty = new Smarty;
if( $smarty == 0 ) //тра-та-та...;
echo "Smarty created";
$smarty->template_dir = 'templates';
$smarty->compile_dir = 'templates_c';
$smarty->cache_dir = 'cach';
$smarty->display( "test.tpl" );
?> |
Сам шаблон приводит не буду, в нем кроме HTML ничего нет.
Функции $smarty->display( "test.tpl" ); и $smarty->fetch( "test.tpl" ); ничего не выдают. Куда копать? |
|
Back to top |
|
kost Smarty Rookie
Joined: 24 Jan 2006 Posts: 33 Location: Kiev, Ukraine
|
|
Back to top |
|
b166-er Smarty Rookie
Joined: 22 Oct 2004 Posts: 29 Location: Germany, Wiesbaden
|
Posted: Mon Feb 13, 2006 8:54 pm Post subject: |
|
|
??????,
??????? ????? ? ??? ????????, ?????, ? php ??? ? OS?
??????:
[php]<?PHP
error_reporting(E_ALL); // vkljutchjajem oshibki
ini_set('display_errors', TRUE); // vidajom oshibki na ekran
define('SMARTY_DIR', 'smarty/');
require_once('smarty/Smarty.class.php'); // berjom Smarty class
$smarty = new Smarty; // delajem Smarty-class
var_dump($smarty); // sdes dolshno bit tipa: SmartyObject{...}
var_dump(file_exists('templates'),is_writable('templates_c'),is_writable('cach')); // dolshno bit: TRUE, TRUE, TRUE
?>[/php]
???? ??? ?????? ??? ???o, ????? ???????? ? ?????? ?????... ?????? ????? ?????? ????? ??? ??? ?????? ???????...
________
VOLCANO VAPORIZER |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|