|
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 |
dimoncheg Smarty n00b
Joined: 18 Apr 2007 Posts: 2
|
Posted: Wed Apr 18, 2007 7:45 am Post subject: Smarty problem |
|
|
pochemu-to voznikla dovol'no strannaya problema, hot'a ran'she nikogda takogo ne bylo, sut' yeye v chem:
Code: |
$smarty = new Smarty;
$smarty->template_dir = CMS_SKINS_ROOT.'skins_site/'.CMS_DEFAULT_SKIN_SITE.'/templates/';
$smarty->compile_dir = CMS_SKINS_TPL_COMPILE_ROOT;
$smarty->cache_dir = CMS_SKINS_ROOT.'skins_site/'.CMS_DEFAULT_SKIN_SITE.'/cache/';
$smarty->compile_check = false;
$smarty->debugging = false;
$smarty->caching = CMS_DAFAULT_TEMPLATE_CACHE;
if (!is_array($CMS_DOCUMENT_ASSIGN)) $CMS_DOCUMENT_ASSIGN = array();
// parse data
foreach ($CMS_DOCUMENT_ASSIGN as $obj) {
$smarty->assign($obj);
}
// display document
$smarty->display($this->get('CMS_CURRENT_LANGUAGE', 'SESSION').'_template.tpl'); |
yesli stoit $smarty->debugging = false; to shablon normal'no otobrazhayets'a v brauzerah Firefox i Opera, v Internet Explorer stranica otobrazhayets'a ne polnost''u, hot'a yesli posmotret' v vide HTML, to kod vyveden do konca
yesli postavit' $smarty->debugging = true; to stranica vyvodits'a polnost''u tol'ko v opere (!), v mozileye voznikayet ta zhe problema chto i v IYE
podskazhite pozhalujsta v chem problema, vtoroj den' nichego ne mogu pon'at', gor'at sroki a men'at' dvizhok smarti ne hochets'a |
|
Back to top |
|
dimoncheg Smarty n00b
Joined: 18 Apr 2007 Posts: 2
|
Posted: Thu Apr 19, 2007 6:59 am Post subject: Closed |
|
|
Ne znayu, bag eto ili net no smarty ne pravilno reagiroval na teg
kod shablona:
Code: | <script type="text/javascript" src="/skins/skins_site/default/js/site.js"> |
esli napisat' tak
Code: | <script type="text/javascript" src="/skins/skins_site/default/js/site.js"></script> |
to vse stanet normalno
nu i polamal ya golovu!!! |
|
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
|