Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Work under Windows and don't work under FreeBDS. Why?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Russian
View previous topic :: View next topic  
Author Message
Inok
Smarty n00b


Joined: 25 Jan 2006
Posts: 1

PostPosted: Wed Jan 25, 2006 4:36 pm    Post subject: Work under Windows and don't work under FreeBDS. Why? Reply with quote

Ничего не могу понять, один и тот же код работает под 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
View user's profile Send private message
kost
Smarty Rookie


Joined: 24 Jan 2006
Posts: 33
Location: Kiev, Ukraine

PostPosted: Fri Jan 27, 2006 9:47 pm    Post subject: Reply with quote

Ничего не работает! Что делать???
_________________
[ru]
http://phpstones.blogspot.com
Back to top
View user's profile Send private message Visit poster's website
b166-er
Smarty Rookie


Joined: 22 Oct 2004
Posts: 29
Location: Germany, Wiesbaden

PostPosted: Mon Feb 13, 2006 8:54 pm    Post subject: Reply with quote

??????,
??????? ????? ? ??? ????????, ?????, ? 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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Russian All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP