Ejemplo n.º 1
0
<?php

use app\specs\Output;
?>
<pre>errors:
<? print_r($validator->errors) ?></pre>

<pre>comment:
<? var_export($comment) ?></pre>

<form method=post action=<?php 
echo Output::url($app->uri);
?>
>
<fieldset>
	<legend><?if(!$comment):?>Add comment<?else:?>Edit comment # <?php 
echo $comment->comment_id;
?>
<?endif?></legend>

	<?if( !$comment && !$app->user->isLoggedIn() ):?>

		<p class="field <?php 
echo $validator->ifError('username');
?>
">Your username:<br><input name=username value="<?php 
echo $this::html($validator->valueFor('username'));
?>
"><br><span class="errmsg"><?php 
echo $validator->getError('username');
?>