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

Ajuda no {.conf}

 
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: Portuguese
View previous topic :: View next topic  
Author Message
effting
Smarty n00b


Joined: 26 Mar 2012
Posts: 1

PostPosted: Mon Mar 26, 2012 4:10 pm    Post subject: Ajuda no {.conf} Reply with quote

Boa tarde galera, então estou começando no smarty e ocorreu um erro enquanto testava ele, na hora em que fui colocar o '.conf' ele está dando problema:

Quote:

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax error in config file 'example.conf' on line 1 '# global variables ' - Unexpected "ï", expected one of: ID , NEWLINE , COMMENTSTART , OPENB' in C:\wamp\www\Smarty-3.1.8\libs\sysplugins\smarty_internal_config_file_compiler.php:139 Stack trace: #0 C:\wamp\www\Smarty-3.1.8\libs\sysplugins\smarty_internal_configfileparser.php(810): Smarty_Internal_Config_File_Compiler->trigger_config_file_error() #1 C:\wamp\www\Smarty-3.1.8\libs\sysplugins\smarty_internal_configfileparser.php(875): Smarty_Internal_Configfileparser->yy_syntax_error(16, '?') #2 C:\wamp\www\Smarty-3.1.8\libs\sysplugins\smarty_internal_config_file_compiler.php(93): Smarty_Internal_Configfileparser->doParse(16, '?') #3 C:\wamp\www\Smarty-3.1.8\libs\sysplugins\smarty_internal_config.php(189): Smarty_Internal_Config_File_Compiler->compileSource(Object(Smarty_Internal_Config)) #4 C:\wamp\www\Smarty-3.1.8\libs\sysplugins\smarty_internal_config.php(214): Smarty_Internal_Config->compileCon in C:\wamp\www\Smarty-3.1.8\libs\sysplugins\smarty_internal_config_file_compiler.php on line 139


Alguem poderia me dizer como arrumar esse erro? ou uma forma melhor de usar essa opção?

essa e a opção que tinha optado para fazer :

Code:
{config_load file='example.conf'}
Back to top
View user's profile Send private message
migas
Smarty Regular


Joined: 07 Apr 2004
Posts: 73
Location: Porto, Portugal

PostPosted: Mon May 07, 2012 9:14 pm    Post subject: Reply with quote

Logo no início tem este carácter '#

Isto acontece devido ao formato do ficheiro, o Charset sobre o qual este foi guardado.
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: Portuguese 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