| Новости | FAQ | Авторы | Документация | В действии | Библиотека |
| Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
dRmx 16.10.2003 19:32
Помогите, пожалуйста, устранить ошибку.@printPoll[params;action][params;action]
^try{
## code generating
^params.foreach[p_id;poll]{
<poll id="$p_id" status="$poll.status" type="$poll.type" default="$poll.default_value" restricted="$poll.restricted">
<question>$poll.question</question>
<${action}s total="$poll.total">
^poll.answers.foreach[a_id;answer]{
<${action}id="$a_id" vote_count="$answer.vote_count">
$answer.answer
</$action>
}
</${action}s>
<date started="$poll.dt_started" closed="$poll.dt_ended" />
<form path="$poll.path_param" action="$request:uri" button="$poll.button_text" />
</poll>
}
}{
^throw[parser.compile;poll;printPoll method compiling error.Check your parameters]
}