Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
ilga 21.04.2007 17:41 / 21.04.2007 18:14
Я застрял на втором уроке.@main[] ^header[] ^body[] ^footer[] @navigation[] $sections[^table::load[/sections.cfg]] <table width="100%" border="0" bgcolor="#000000" cellspacing="1"> <tr bgcolor="#FFFFFF"> ^sections.menu{ ^navigation_cell[] } </tr> </table> <br> @navigation_cell[] $cell_width[^eval(100\$sections)%] ^if($sections.uri eq $request:uri){ <td width="$cell_width" align="center" bgcolor="#A2D0F2"> <nobr>$sections.name</nobr> </td> }{ <td width="$cell_width" align="center"> <a href="$sections.uri"><nobr>$sections.name</nobr></a> </td> } @header[] <html> <head> <title>Тестовый сайт Parser3</title> </head> <body bgcolor="#FAEBD7"> <table width="100%" border="0" bgcolor="#000000" cellspacing="1"> <tr bgcolor="#FFFFFF" height="60"> <td align="center"> <font size=" 2"> <b>^greeting[]</b></font> </td> </tr> </table> <br> @body[] ^navigation[] <table width="100%" height="65%" border="0" bgcolor="#000000" cellspacing="1"> <tr bgcolor="#ffffff" height="100%"> <td width="30%" valign="top" bgcolor="#EFEFEF"> <b>^body_additional[]</b> </td> <td width="70%" valign="top"> ^body_main[] </td> </tr> </table> <br> @footer[] <table width="100%" border="0" bgcolor="#000000" cellspacing="0"> <tr> <td></td> </tr> </table> $now[^date::now[]] <font size="-3"> <center>Powered by Parser3<br>1997-$now.year</center> </font> </body> </html>HTML:
^main[] @greeting[] Добро пожаловать! @body_additional[] Главная страница сайта @body_main[] Основное содержаниеБраузер выдает:
Unhandled ExceptionВ логе, что-то вроде:
The server encountered an unhandled exception and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the Parser error log or in debug version of unhandled_exception.
...htdocs/index.html(1:2): 'main' call canceled - endless recursion detected [parser.runtime]и
...htdocs/index.html(2:1): parse error, expecting `$' [parser.compile]Предполагаю, что где-то пропустил "$". Но где?