Привет всем! Подскажите что нужно сделать, чтобы небыло такой ошибки в smatry: Fatal error: Uncaught exception 'Exception' with message 'Syntax Error in template "c:/wamp/www/project/templates\lib/error.tpl" on line 10 " <li>{$str|escape:"htmlall":"cp1251"}</li> " unknown modifier "escape"' in C:\wamp\www\project\include\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php:403 Stack trace: #0 C:\wamp\www\project\include\smarty\libs\sysplugins\smarty_internal_compile_private_modifier.php(51): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown modifie...') #1 C:\wamp\www\project\include\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php(251): Smarty_Internal_Compile_Private_Modifier->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), NULL, NULL, NULL) #2 C:\wamp\www\project\include\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php(113): Smarty_Internal_TemplateCompilerBase->callTagCompiler('private_modifie...', Array) #3 C:\wamp\www\project\include\smarty\libs\sysplugins\smarty_in in C:\wamp\www\project\include\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 403
Объясните пожалуйста, не пойму какое исключение, то что в smarty_internal_templatecompilerbase.php on line 403? Если убрать модификатор переменной escape из шаблона то все работает, он просто при компиляции непонимает escape.
Да, невоспринимает модификатор escape, в библиотеке такой класс существует, а вот почему он не компилирует его я непонимаю, все перепробовал, да и в гугле ответов нету
Mixik_sp если вы хотите получать ответы на такие вопросы, надо кроме описания ругачки еще приводить и ту строку, желательно с сопутствующим окружением.